Hi,
I have built a cakephp app that needs the user to login or register(for new users), when he tries to download the file. And I use to javascript to redirect users to login page, and once they login I want users directed back to the download page they were on.
I am using
$this->redirect($this->referer());
works fine in chrome and FF. In IE it does not work. It redirects user back to home page. document.referrer is blank.
I understand that in IE that document.referrer is populated only when user clicks on the link.
Is there a workaround or a hack to fix this(javascript or php). I appreciate any help.
Thanks.