Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redirect to previous url?

I was just wondering how in I can find the previously visited url for a session?

So after a user does something I can redirect them to that URL.

Is there any standard way to do this? Otherwise I was going to add some overrides to Global.asax and use a session variable to store URL history.

like image 598
Alex Hope O'Connor Avatar asked Mar 13 '11 05:03

Alex Hope O'Connor


1 Answers

Request.UrlReferrer might be what you want, but you might want to think about using AJAX or passing the url as a parameter...

like image 65
Jason Goemaat Avatar answered Sep 22 '22 23:09

Jason Goemaat