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
Hi,
I really think that the fact that the user module redirects to the user page is not at all convinient for the user.
What we need is for it to redirect it to the homepage. Otherwise, why I am logging in to a site? To see my user default?
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
Uwe Hermann 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