I have taken over a project and Im having a small problem with locales.
It is running Craft 2.6.3016
A section has a locale “en” where the english URL format is “en/contact”, and the entry also have the slug “en/contact”… So, I would expect this URL to be domain.com/en/contact/en/contact, no? But it is not!
When getting the URL with this code:
{{ craft.entries.section( 'contact' ).first().url }}
the url is “domain.com/en/en/contact”, this link does not work, but if I change it to “domain.com/en/contact” as I would expect it to be, it works!!
I have no idea what kind of dark magic that messes around with this, but maybe some of you got any ideas? Nothing seems to make any sense here. Also note that the “en” folder in the public folder is called “en__” if I change this to “en” the locale stops working.
Any help appreciated!