Redirect to referer after login.#1030
Redirect to referer after login.#1030angaither merged 1 commit intoDoSomethingArchive:devfrom angaither:login-redirect
Conversation
There was a problem hiding this comment.
Looks like it will work, just reading up on using HTTP_REFERER ...
http://drupal.stackexchange.com/questions/44264/how-to-redirect-user-to-previous-page-after-form-submit suggests having a fallback in place, and "Remember that some browser does not set $_SERVER['HTTP_REFERER'] and if a user browses directly to the page, "
What are your thoughts about that? Would an alternative be to set the form's action, like we do in the campaign_data ?
|
I remember needing to set the action to submit the hidden forms to the correct urls, then this 'redirect' happens after that action. |
|
Right, it makes sense that you'd get taken their profile on I'm happy to merge and see how goes. Google shows some talk of issues with varnish and HTTP_REFERER, not sure if we're set up with varnish on our local installs. |
|
|
Redirect to referer after login.
Fixes #1023