You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My website uses urls that can include the language as prefix.
For example:
website.com/en/article/abcd123
website.com/fr/article/abcd123
Or also (especially for google reasons):
website.com/en-us/article/abcd123
website.com/en-uk/article/abcd123
But this prefix is optional. The default lang is set to 'fr' if missing.
For example:
website.com/article/abcd123
Actually, all those example urls should go to the same controller, asking the "article" with id "abcd123". The only difference is the lang.
My question is about the "lang" parameter here. What do you recommend to handle that?
PS : I have many languages on my website (fr, en, it, sp, etc.) and many routes (article, pay, profil, etc.). I do not want to double each route for each lang.
The text was updated successfully, but these errors were encountered:
Hello,
My website uses urls that can include the language as prefix.
For example:
website.com/en/article/abcd123
website.com/fr/article/abcd123
Or also (especially for google reasons):
website.com/en-us/article/abcd123
website.com/en-uk/article/abcd123
But this prefix is optional. The default lang is set to 'fr' if missing.
For example:
website.com/article/abcd123
Actually, all those example urls should go to the same controller, asking the "article" with id "abcd123". The only difference is the lang.
My question is about the "lang" parameter here. What do you recommend to handle that?
PS : I have many languages on my website (fr, en, it, sp, etc.) and many routes (article, pay, profil, etc.). I do not want to double each route for each lang.
The text was updated successfully, but these errors were encountered: