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:
2 Feb 2012 at 15:12 UTC
Updated:
15 Apr 2012 at 00:42 UTC
Hi all,
When i access the users/admin page as an anonymous user, it will redirect to the login page with the following url.
http://[domain]/user/login?destination=/users/admin
and after login, the it will return to
http://[domain]//users/admin
as you can see, there is a extra "/" on the final url. although it will render the same page as http://[domain]/users/admin, i still want to fix it.
Regards,
Kit
Comments
Comment #1
lotyrin commentedCan you still reproduce this? The code for generating destinations is completely re-done.
Comment #2
verblet commentedI also get this problem using 7.x-1.5. My Drupal installation is in a subfolder so all redirects are going to domain.com/subfolder//subfolder/node
Comment #3
pipep commented+1
D.7.12
Comment #4
pipep commentedOk, quick & dirty solution for my case:
on
r4032login.modulemodify line #90 from
header('Location: ' . url('user/login', array('query' => array('destination' => urldecode($path)), 'absolute' => TRUE)), TRUE, 302);to
header('Location: ' . url('user/login', array('query' => array('destination' => urldecode('?q=home')), 'absolute' => TRUE)), TRUE, 302);where
'?q=home'stands for my custom home page after logging in.
Comment #5
lotyrin commented#2 is definitely using the released version (before my improvements). #3/#4 is also, based on the line of code changed.
Please try the latest -dev snapshot.
Comment #6
pipep commentedyep, but the -dev isn't available for download...
Comment #7
lotyrin commentedIt's not listed on the project page (and I don't have the access to add them there), but they exist (under "view all releases"):
6.x-1.x: http://drupal.org/node/316860
7.x-1.x: http://drupal.org/node/316861
Comment #8
deekayen commentedI just turned on the -dev releases.
Comment #9
pipep commentedcool, thanks mate !
Comment #10
ambientdrup commentedI've tested and can confirm that the dev version fixes this.
-Trevor
Comment #11
lotyrin commented