# Output duplicate directory \[2.6\]

**URL:** https://forum.mautic.org/t/output-duplicate-directory-2-6/7518
**Category:** Product Support
**Created:** [February 14, 2017, 3:16pm UTC](https://forum.mautic.org/t/output-duplicate-directory-2-6/7518 "2017-02-14T15:16:47Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![markus\_k](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@markus\_k](https://forum.mautic.org/u/markus_k)
#### Post date: [February 14, 2017, 3:16pm UTC](https://forum.mautic.org/t/output-duplicate-directory-2-6/7518/1 "2017-02-14T15:16:47Z")

</div>

Updated Mautic to 2.6.  
  
Now, the forms are generated with wrong path.  
  
  
  
Here is the path to my mautic (self-hosted): [https://subdomain.domain.com/mautic/index.php](https://subdomain.domain.com/mautic/index.php)  
  
  
  
When I open a landing page with a form inside, I get this error to my form in the browser-console (Chrome)  
  
  
  
GET [https://subdomain.domain.com/mautic/](https://subdomain.domain.com/mautic/) **mautic** /media/js/mautic-form.js  
  
  
  
  
  
  
  
Can someone understand it?

---

<div class="post-metadata">

### Author: ![markus\_k](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@markus\_k](https://forum.mautic.org/u/markus_k)
#### Post date: [February 14, 2017, 3:16pm UTC](https://forum.mautic.org/t/output-duplicate-directory-2-6/7518/2 "2017-02-14T15:16:47Z")

</div>

Updated Mautic to 2.6.  
Now, the forms are generated with wrong path.

Here is the path to my mautic (self-hosted): [https://subdomain.domain.com/mautic/index.php](https://subdomain.domain.com/mautic/index.php)

When I open a landing page with a form inside, I get this error to my form in the browser-console (Chrome)

GET [https://subdomain.domain.com/mautic/](https://subdomain.domain.com/mautic/)mautic/media/js/mautic-form.js

Can someone understand it?

---

<div class="post-metadata">

### Author: ![bchiam](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@bchiam](https://forum.mautic.org/u/bchiam)
#### Post date: [February 14, 2017, 3:32pm UTC](https://forum.mautic.org/t/output-duplicate-directory-2-6/7518/3 "2017-02-14T15:32:12Z")

</div>

I’m repeating this again here. 🙂

2.6 is unstable. Avoid using it for the time being. Revert back to 2.5.1 while waiting for the more stable version coming out. I’m waiting patiently for it. 🙂

---

<div class="post-metadata">

### Author: ![markus\_k](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@markus\_k](https://forum.mautic.org/u/markus_k)
#### Post date: [February 14, 2017, 3:39pm UTC](https://forum.mautic.org/t/output-duplicate-directory-2-6/7518/4 "2017-02-14T15:39:58Z")

</div>

OK … i’m waiting with you.

I found another inconsistency. If it is one. If a lead deletes its browser-cache and returns to a mautic-form on my page with its e-mail. The lead ID changes to a newer one.

Is this a new behaviour in mautic???

---

<div class="post-metadata">

### Author: ![markus\_k](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@markus\_k](https://forum.mautic.org/u/markus_k)
#### Post date: [February 17, 2017, 3:48pm UTC](https://forum.mautic.org/t/output-duplicate-directory-2-6/7518/5 "2017-02-17T15:48:09Z")

</div>

Solved the first Question 😉

Go to Configuration an remove the subfolder “mautic”. Mautic knows where it is ; )

Change: [https://subdomain.domain.com/mautic/index.php](https://subdomain.domain.com/mautic/index.php) to [https://subdomain.domain.com/](https://subdomain.domain.com/)

---

<div class="post-metadata">

### Author: ![auto](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@auto](https://forum.mautic.org/u/auto)
#### Post date: [April 3, 2017, 9:28am UTC](https://forum.mautic.org/t/output-duplicate-directory-2-6/7518/6 "2017-04-03T09:28:18Z")

</div>

This solved my issue aswell, but did you noticed that the email links are not working??

If i use in the Configuration -----\> General Settings ----\>Site url the path:  
[https://domain.com/](https://domain.com/) form url is correct but the links in the email are wrong so they dont work.

If i use the [https://domain.com/mautic/index.php](https://domain.com/mautic/index.php) links in the url are correct but they forms url are duplicated…

Any ideas??

Edit: Mautic 2.7.1

---

<div class="post-metadata">

### Author: ![auto](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@auto](https://forum.mautic.org/u/auto)
#### Post date: [April 3, 2017, 9:29am UTC](https://forum.mautic.org/t/output-duplicate-directory-2-6/7518/7 "2017-04-03T09:29:37Z")

</div>

[quote=20265:@markus_k]Solved the first Question 😉

Go to Configuration an remove the subfolder “mautic”. Mautic knows where it is ; )

Change: [https://subdomain.domain.com/mautic/index.php](https://subdomain.domain.com/mautic/index.php) to [https://subdomain.domain.com/[/quote]](https://subdomain.domain.com/%5B/quote%5D)

Hi @markus_k , do your email links have issues?

---

<div class="post-metadata">

### Author: ![auto](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@auto](https://forum.mautic.org/u/auto)
#### Post date: [April 3, 2017, 10:54am UTC](https://forum.mautic.org/t/output-duplicate-directory-2-6/7518/8 "2017-04-03T10:54:39Z")

</div>

Hi @MxyzptlkFishStix thanks for reply,

I will try it out, but what about href="{webview\_url} this links??

---

<div class="post-metadata">

### Author: ![auto](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@auto](https://forum.mautic.org/u/auto)
#### Post date: [April 3, 2017, 11:07am UTC](https://forum.mautic.org/t/output-duplicate-directory-2-6/7518/9 "2017-04-03T11:07:08Z")

</div>

I just tried but it didnt work.  
I have the Configuration -----\> General Settings ----\>Site url path set as follow:  
[https://domain.com/](https://domain.com/)  
Because if i don’t set it like this the form will not work.

---

<div class="post-metadata">

### Author: ![auto](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@auto](https://forum.mautic.org/u/auto)
#### Post date: [April 3, 2017, 11:09am UTC](https://forum.mautic.org/t/output-duplicate-directory-2-6/7518/10 "2017-04-03T11:09:23Z")

</div>

It did not work @MxyzptlkFishStix .

I have the Configuration -----\> General Settings ----\>Site url path set as follow:  
[https://domain.com/](https://domain.com/)

If i change it, forms are not wokring, they duplicate the domain folder

---

<div class="post-metadata">

### Author: ![auto](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@auto](https://forum.mautic.org/u/auto)
#### Post date: [April 3, 2017, 11:42am UTC](https://forum.mautic.org/t/output-duplicate-directory-2-6/7518/11 "2017-04-03T11:42:32Z")

</div>

@MxyzptlkFishStix , thanks for helping out.

I have tried this as well but… I might have confused you…sorry.

My forms do work if i set the Configuration -----\> General Settings ----\>Site url path as follows:  
[https://domain.com/](https://domain.com/)

but then the email links do not work.

If i set the Configuration -----\> General Settings ----\>Site url path as follows:  
[https://domain.com/mautic](https://domain.com/mautic)

Then the forms do not work (they dublicate the mautic folder like this [https://domain.com/mautic/mautic](https://domain.com/mautic/mautic))

but the email link do work correctly.

So if i fix the forms by changing the Configuration -----\> General Settings ----\>Site url path i get not working links in email.  
If a fix the links in email by changing the Configuration -----\> General Settings ----\>Site url path then the forms do not work.

So in a way i am forced to keep the Configuration -----\> General Settings ----\>Site url path to this:

[https://domain.com/](https://domain.com/) (mautic is in the [https://domain.com/mautic](https://domain.com/mautic))

but the email links do not work

---

<div class="post-metadata">

### Author: ![auto](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@auto](https://forum.mautic.org/u/auto)
#### Post date: [April 3, 2017, 12:02pm UTC](https://forum.mautic.org/t/output-duplicate-directory-2-6/7518/12 "2017-04-03T12:02:31Z")

</div>

Strange things…@MxyzptlkFishStix

I did edit the emails.  
But here is something i didnt even try and it works correctly despite i have errors in console.

I used Site url (in settings) [https://domain.com/mautic](https://domain.com/mautic) (the real folder that mautic is installed)  
I do get the error in console:

GET [https://www.mydomain.com/mautic/mautic/media/js/mautic-form.js](https://www.mydomain.com/mautic/mautic/media/js/mautic-form.js)  
(anonymous) @ VM1071:13  
(anonymous) @ generate.js?id=1:1

But everything works!  
Form works, emails are sent, email links are correct!

But i do have these errors in console.  
Any ideas to disappear these errors?

Edit: i dont get the form submit message! I just noticed
