How do you retrieve the matching route for a URL (in string format)?
Basically something like…
Routes.GetMatchingRoute('http://mysite.com/foo/bar/1');
Without having a HttpContext.
Basically I would like to RedirectToAction using a referring URL.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could just return Redirect(url); instead of RedirectToAction();
I recall seeing someone ask that on SO before, but I can’t find the question.
Edit: here it is (note the edit by the OP), there was no answer there either.