The Simple UI module does a form alter on the login form and forces a ?destination to the $form['#action] (hardcoded). This will redirect the user to the dashboard, or w/e page you have in site information for the default front page.
The problem stems from when I want to send someone to the login page and provide a "destination=[url]" to the URL so once logged in, they return back to the URL they came from. If I provide a destination to the login link and then fill out the login form with an error, the page will refresh and the new url will have two destinations on it.
myurl.com/user/login?destination=[original]?destination=dashboard
I have attached a patch that will redirect the user to the dashboard, while at the same time respecting the destination parameter. It should give it the most flexibility.
Comment | File | Size | Author |
---|---|---|---|
#2 | user-login-redirect-destination-refactor-2861193-2.patch | 922 bytes | iLLin |
Comments
Comment #2
iLLin CreditAttribution: iLLin commentedComment #3
iLLin CreditAttribution: iLLin commentedComment #4
amermod CreditAttribution: amermod at Connect-i commentedHi iLLin,
Again, thanks a lot for your issues !
Nice patch. I've committed this.
Best regards,
Allan
Comment #5
amermod CreditAttribution: amermod at Connect-i commentedComment #6
amermod CreditAttribution: amermod at Connect-i commented