tags:

views:

43

answers:

1

action: User/Details View: Details

In my 'Details' view, a user can click on an actionlink that goes to the action :User/UserBehavior From which I again return a "Details" View.

the url shows http://User/UserBehavior

If I return redirectToAction to the Details action, I still get the "UserBehavior" action in the url.

how do I redirect and present the new url of the action? isnt that the way its supposed to be?

TO CLARIFY: WHEN YOU USE REDIRECTTOACTION, SHOULD THE URL IN THE BROWSER SHOW THE ORIGINAL ACTION OR THE ACTION YOU REDIRECTED TO?

A: 

Try stating the View name in your redirected action like:

return View("UserBehavior",someModel);

That will make sure you get the right View in redirected action.

For your last question: URL shows the redirected action.

Ufuk Hacıoğulları