Route Localization
In MVC 3 creating global sites is not easy.
Route localization would be really useful for many reasons including SEO.
Take the route: /post/show/1/hello-world
This route could become:
/en-US/post/show/1/hello-world
/en-GB/post/show/1/hello-world
/pt-PT/artigo/ver/1/ola-mundo
The culture code is necessary to distinguish between en-US and en-GB.
But all route items is localized.
This should also be integrated with a cookie just to redirect the user to its version if she or he already visited the site before.
I think I checked all the approaches and implementations I found. And I didn't find any really satisfying.
I hope MVC Team could include an easy way to have this on MVC 4.
Miguel
5 comments
-
Anees
commented
MVC is nightmare for localized URLs...I am thinking to shift to PHP Laravel...
-
work.az
commented
I need to show language in route. with point.. (.) not slash(/)
-
Elyor Latipov
commented
I totally agree this suggestion.And voicing to +3 :D
-
Eric
commented
+3 :)
-
A Cec
commented
I totally agree with you. Localization with mvc3 is a complete nightmare.