ASp.NEt MVC: how to parse url string to get RouteData
- by Feryt
Hi.
Is there any way hot to get RouteData from url string?
I have login form with returlUrl as query string parameter.
My routes are defined as : {languageCode}/{controller}/{action}
In action method LogIn(string returlUrl) the returlUrl is something like "en/home/contacts" etc.
I need to change languagePart a i dont want to use string.Replace, as routes may change in future.
Thank you.