Needs review
Project:
Login redirect
Version:
7.x-1.2
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Sep 2015 at 09:03 UTC
Updated:
13 Apr 2016 at 17:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
aditya_anurag commentedComment #3
aditya_anurag commentedHi,
I checked the issue, Drupal login block don't all user to redirect to external link so it wasn't redirecting. I created a patch try applying that it will work.
Comment #4
aditya_anurag commentedComment #5
aditya_anurag commentedComment #7
aditya_anurag commentedComment #8
jweowu commentedI think it's better to define the individual hook_form_FORM_ID_alter functions, and have each of them call a common helper function. That prevents the unnecessary call to a hook_form_alter implementation for ALL forms.
(But if you *did* keep using hook_form_alter, I would suggest inverting the form_id test and bailing out early when it doesn't match, which avoids nesting the entire function body.)
Comment #9
GeeUnit commentedI am facing the same issue. I am trying to navigate the user to an external URL on login which works for /user/login?url=https://www.google.co.in/?gws_rd=ssl but doesn't work from the user login block.
I applied the patch mentioned in #4 but that did not fix the problem (user/login?url=https://www.google.co.in/?gws_rd=ssl stopped working too)