Jedi Master Spooky
Jedi Master Spooky

Reputation: 5809

Url of Return View in ASP.NET MVC

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?

Upvotes: 1

Views: 1810

Answers (1)

tvanfosson
tvanfosson

Reputation: 532465

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.

Upvotes: 2

Related Questions