Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language in URL #724

Closed
chibko opened this issue Mar 13, 2017 · 3 comments
Closed

Language in URL #724

chibko opened this issue Mar 13, 2017 · 3 comments

Comments

@chibko
Copy link

chibko commented Mar 13, 2017

Hello,

In CONTAO 3.5, we had a checkbox in the tab settings : "Add the language to the URL"

I can't see this checkbox in CONTAO 4.3.5 managed edition. I have look if this option has been moved to the root page settings. No…

So, now in CONTAO 4.3.5, the language string is always added to the page URL ? even if there is just one website root ? It's a bit annoying…

@fritzmg
Copy link
Contributor

fritzmg commented Mar 13, 2017

I can't see this checkbox in CONTAO 4.3.5 managed edition. I have look if this option has been moved to the root page settings. No…

You need to add

    prepend_locale: false

to your parameters.yml. You need to delete the production cache afterwards, either by hand or by running

vendor/bin/contao-console cache:clear -e=prod

In the future all this can be done with the Contao Manager, presumably.

Btw. you also might need to restart your browser (or clear the session cache manually otherwise).

So, now in CONTAO 4.3.5, the language string is always added to the page URL ? even if there is just one website root ? It's a bit annoying…

The default behaviour has changed in the managed-edition, yes: contao/manager-bundle@5477fda

@chibko
Copy link
Author

chibko commented Mar 13, 2017

OK, thank you very much !
I see that the default behaviour is now to enable this option. It's not my choice because when i have a multilingual website, I always use the localized domain name. Contao is multilingual but also multi domains !

@chibko chibko closed this as completed Mar 13, 2017
@fritzmg
Copy link
Contributor

fritzmg commented Mar 13, 2017

Yes, well, see the discussion I linked :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants