MVC noob - changing part of URL in a link

Posted by vidalsasoon on Stack Overflow See other posts from Stack Overflow or by vidalsasoon
Published on 2010-04-08T21:02:40Z Indexed on 2010/04/08 21:23 UTC
Read the original article Hit count: 382

Filed under:
|

Hi,

I have a site that supports localization. I would like to be able to switch between english and french.

Let say the user is currently at URL: http://www.mysite.com/en/Home

I would like to redirect to: http://www.mysite.com/fr/Home

If the user click on a "French" link how to change the URL part to "fr" yet not change the "Home" part of the URL (basically I want preserve the current location of the user)

Hope my question makes sense! I'm probably missing something very basic?

© Stack Overflow or respective owner

Related posts about asp.net-mvc-2

Related posts about asp.net-mvc