You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a login failure occurs, Warden sends back a full path in attempted_path, but devise's failure_app assumes the path does not contain a relative URL root and assigns it to PATH_INFO:
In this case, PATH_INFO is assigned /base_app/resource.
However, SessionController::store_redirect_path will call request.fullpath, which then makes the path /base_app/base_app/resource. Note the redundant base_app.
When a login failure occurs, Warden sends back a full path in
attempted_path
, but devise'sfailure_app
assumes the path does not contain a relative URL root and assigns it toPATH_INFO
:For example, suppose:
relative_url_root
=/base_app
attempted_path
=/base_app/resource
.PATH_INFO
is assigned/base_app/resource
.SessionController::store_redirect_path
will callrequest.fullpath
, which then makes the path/base_app/base_app/resource
. Note the redundantbase_app
.PATH_INFO
should only contain the part of the path that excludes the relative URL root, sinceSCRIPT_NAME
includes the relative URL part (see http://api.rubyonrails.org/classes/ActionDispatch/Routing/UrlFor.html) for more details.The text was updated successfully, but these errors were encountered: