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

Bèr Kessels’s picture

Status: Active » Fixed

we now redirect back, to the page where one logged in from.

joe.murray’s picture

Anonymous’s picture

Anonymous’s picture

Uwe Hermann’s picture

Version: » x.y.z
Category: support » bug
Status: Fixed » Active

I 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?

gravyface’s picture

I 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.

gravyface’s picture

k 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?

Zen’s picture

Status: Active » Fixed

This appears to be fixed in HEAD.. Marking as Fixed.

-K

dries’s picture

Status: Fixed » Closed (fixed)