Closed (fixed)
Project:
Redirect 403 to User Login
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2012 at 08:29 UTC
Updated:
7 Nov 2013 at 01:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
firebird commentedThis actually happens every time a user with no permission to view the site front page "/" tries to view it.
Since drupal_get_path_alias() returns the current path for an empty input, the destination on the login page ends up being "r4032login", and an access denied is returned after login.
This is easily fixed by using drupal_lookup_path() instead of drupal_get_path_alias(). Patch attached.
Comment #2
gregglesUpdated title to be more clear.
@firebird - You've stated the problem and a proposed solution, which is great. But what is the behavior once your patch is applied?
Comment #3
pwolanin commentedI think this was fixed by #2103303: Query string parameters not preserved in redirect and/or #1735762: Redirection not working on multi-lang site with prefixes
Comment #4
pwolanin commented