Thanks to visit codestin.com
Credit goes to github.com

Skip to content

How to set locale as route prefix to get two forms of URLs (standard & localized) #10318

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

Closed
zd-dalibor opened this issue Feb 24, 2014 · 2 comments
Labels

Comments

@zd-dalibor
Copy link

Please read this post:

https://groups.google.com/d/msg/symfony2/uRoYVaczJWI/NQgYt6m2mY0J

@Tobion
Copy link
Contributor

Tobion commented Feb 24, 2014

Would be partly solved by #5424. But

default local: en
www.example.com/posts -> working
www.example.com/en/posts -> this URL is lost

you don't want both to resolve because it means duplicate content. So /en/posts should instead redirect to /posts.

@jakzal jakzal added the Routing label Feb 24, 2014
@Tobion
Copy link
Contributor

Tobion commented Jan 16, 2015

Closing as having two urls for the same thing is not best practice.

@Tobion Tobion closed this as completed Jan 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants