I have javascript code like this:
<a href="javascript:window.history.back()"...
When I test my website (using HTML5, MVC4) in a browser, it works fine. But when I run it in an Android/iPhone app using a embedded browser my back link doesn’t work.
Is there a way to simulate a history.back using razor, like Url.Action?
You can save a previous page url in session. Something like this:
Also to don’t always copy/paste this code you can write your own SuperDupaActionResult which will be inherit from ActionResult and contain the code above (as a method for example).