In the context of this question link text is possible from a Controller that responds to a Form Post to go to the Friendly Url?
Asked
Active
Viewed 1,792 times
1 Answers
2
Yes. Your controller action can determine the friendly url based on how you would like the route defined for it, then do a Redirect to the friendly url instead of returning the view. It will cause another browser request which will add load to to your server, so you'd want to be sure that it was really important.

tvanfosson
- 524,688
- 99
- 697
- 795
-
Which -- finding the friendly url or doing the redirect? Constructing the friendly url and the controller action to handle it is really a matter of you deciding how. Doing the redirect is just constructing a RedirectResult with the appropriate url. – tvanfosson Feb 07 '09 at 23:02
-
I already have the friendly url so the RedirectResult, thanks – Jedi Master Spooky Feb 07 '09 at 23:15
-
The way is RedirectToAction("action","controller",parameters) – Jedi Master Spooky Feb 07 '09 at 23:25