Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Director::redirectBack() url


3 Posts   2501 Views


16 September 2009 at 5:52pm (Last edited: 16 September 2009 6:12pm), Community Member, 23 Posts


I'm writing a little module and wan't get the url as a string similar to the url that Director::redirectBack() would redirect me to. I wan't to save this url in a session for later use. Is that possible some how?

- Martin


17 September 2009 at 9:58am Community Member, 23 Posts

Don't know if it is the best solution but I ended up using $_SERVER["HTTP_REFERER"]


17 September 2009 at 11:12am 4085 Posts

Yeah, it's not that reliable, but that should do. Really the only way to get that information is through Javascript with access to the browser history directly.