I am on a view where the user modifies the page where the url is as follows:
http://localhost:45217/DView/EditResultsDetail?locId=3397¶mId=1375&Date=02%2F11%2F2013%2014%3A44%3A47
When the user clicks on Submit, I do a POST. I do a RedirectToAction follows:
return RedirectToAction("ResultsDetail", new { locId = locId, dt = date });
This works in that the ResultsDetail action is called and corret view is displayed.
The problem though is the the querystring still remains:
http://localhost:45217/DView/EditResultsDetail?locId=3397¶mId=1375&Date=02%2F11%2F2013%2014%3A44%3A47
The problem with this is that if the user clicks on Refresh, they will go back to the EditResultsDetail action and not remain on ResultsDetail.
RedirectToActionsends a redirect code back to the browser, so it would do a full redirect to your new URL. The only time I'd expect to see this problem is if you were inside of aniframe. Make sure thatRedirectToActioncode is actually happening, and keep an eye on the HTTP calls in Fiddler or your browser's network tab.