Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
user.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Mar 2005 at 18:12 UTC
Updated:
24 Jan 2006 at 18:35 UTC
Jump to comment: Most recent
Comments
Comment #1
Bèr Kessels commentedwe now redirect back, to the page where one logged in from.
Comment #2
joe.murray commentedComment #3
(not verified) commentedComment #4
(not verified) commentedComment #5
Anonymous (not verified) commentedI cannot confirm this in current HEAD. E.g. if I click on "login" while on node/16, I'm redirected to user/2 or something, but not to node/16. Bug?
Comment #6
gravyface commentedI too am experiencing this issue.
I've tried changing the following on line ~817 in the user_login function to a bunch of different static node paths, but nothing works -- it always redirects to "user/2":
// Redirect the user to the page he logged on from.
drupal_goto();
I have the simple_access module installed; this is the only security modification I've made.
Comment #7
gravyface commentedk I added a hack to the switch statement in the user_module on line ~1234 -- I changed the default from:
default:
if (!arg(1)) {
if ($user->uid) {
drupal_goto('user/'. $user->uid);
}
else {
print theme('page', user_login($edit));
}
}
else {
user_view(arg(1));
}
}
to:
default:
if (!arg(1)) {
if ($user->uid) {
drupal_goto('my_node');
}
else {
print theme('page', user_login($edit));
}
}
else {
user_view(arg(1));
}
}
It's expecting an argument to be passed in -- I'm assuming its the missing referral node?
Comment #8
Zen commentedThis appears to be fixed in HEAD.. Marking as Fixed.
-K
Comment #9
dries commented