By tomsm on
I just upgraded my site from 6.10 to 6.11.
With 6.10 the page was not changed after login, it stayed the frontpage.
Now, after upgrading to 6.11, the "my account" page is loaded automatically after login.
But I want it like it was with 6.10. It should remain on the frontpage.
How can I fix this?
Thanks!
Comments
The behavior is not new
All times I log in in my web site, I am redirected to the user profile page. It happened even before the 6.11 version.
I solved it
Well, that is very strange, because my 6.10 didn't do this.
I will put a backup of 6.10 back and see what happens.
With 6.11 I have created a redirect URL action to the frontpage that is triggered on user login.
is that not a default?
I think this is the Drupal default and you changed at some stage the settings to redirect to the frontpage - see http://drupal.org/node/298506.
All you will need to do is redirect again.
if you use a module for this you might have to reinstal it and check that it works. If you want to redirect via actions and triggers - follow the advice in the link shown above.
Good luck and do not reinstall right now. I hope this solution will work and it should be less hassle.
New behaviour I think
Its not been that way for me - previously for me logging in would return me to the same page that I was browsing before.
Is there a simple way to return to that behaviour, because some times I log in to the site to make changes and I do not want to be re directed away from the page I was viewing.
Is there a good/smple way to revert to the old settings?
You can use actions
You can use an action that would be trigged when a user logs in. The actions are included in Drupal core core, with Drupal 6.
How?
Any idea what I need to put in the link box so that it redirects to the *current page*?
EDIT
fwiw, the same issue happens on drupal.org now too - logging in takes you to your profile page *away* from the page you are looking at.
<front> worked for me.
Put < front > (with out the spaces) for the URL in the Rule.. I tested it from a few different nodes and calendar and it seemed to keep me where I was.
And I was also on 6.10, all was fine and this "feature" appeared when I updated to 6.11. It is kind of annoying. I now need to go enable the Trigger Module and add this rule to 4 of the sites I manage.
Remain on same page
I am not trying to redirect the login to the front page.
I want it to remain on whatever page it was that the user already was on.
EDIT
Typing actually does not redirect to the front page, but back to whatever page the user was on, so that has fixed it for me.
Not the most logical of ways, but it works. Let's hope that "bug" does not get fixed anytime soon!
tested 6.10 - no redirect
I tested my 6.10 version again. After login I am not redirected to "my account" page.
I have no actions defined and the trigger module is disabled.
When I logout, the frontpage is loaded again in the language I currently use.
I am sure that I have not added anything that redirects a user to the frontpage after login.
For me, it is default behaviour with version 6.10.
same here. 6.10 did not
same here. 6.10 did not redirect me to the user page upon login. 6.11 does.
Drupal 6.11 added remove
Drupal 6.11 added remove redirect destination when there is redirect to same page.
http://drupal.org/node/450466
by the committer notes, I think its an error.
Same problem for me since i
Same problem for me since i upgrade to 6.11...
This more a bug than a feature !
I expect that this anoying behavior will not be used in next release !
I had to add an action trigger to fix that.
Where is your trigger taking you
Hi vhenninot,
Where is your trigger taking you?
Is it taking you to the front page of your site or to the page you came from (any page open to any user - "anonymous").
Thanks
whit this action - trigger work but...
For me work right if add this action
Create: Redirect to a tokenized URL
and set token: [site-url]
then set this action in trigger for user, after login.
This taking you the page you came from (any page open to any user - "anonymous").
hi
Thanks! it works
I have 6.11. Tried the action and trigger you gave. It works - i.e. when
the user logs in, he stays on the page he was browsing.
Compare to 6.10, it just
Compare to 6.10,
it just added
if you don't mind hack core. Delete above few lines code.
The trigger action take the
The trigger action take the user to the frontpage, (i put the views2 frontpage)
i dont know how to go to previous page with the trigger/actions ...
(i have not TOKEN installed on my Drupal)
I am finding the exact same
I am finding the exact same thing, and it is an issue. It gives the behaviour as when you logon during off-line mode. Where you initially see sitename/user/1 rather than sitename/node.
Is there a non-coding way around this? I just haven't tried to modify it before outside of a module.
Above it looks like code was changed from 6.10 to 6.11 that causes this. Why would this be a good thing, no one would want to start at their user page.
Any more about this issue please post. Does this need to be listed in the bug tracking system?
BTW I use Front Page module as well, but on a test site I am not using Front Page and I see this behaviour there as well.
Regards,
Dan.
Yes - actions and triggers
If you go up the page there is a suggestion to use actions and triggers.
Add an action to redirect to , and add a trigger to the user section and choose login.
That will however not redirect to the front page - but leave the user at the present page. If you want to redirect to the front page, then there is a suggestion above to use a token, but I have not tried that and cannot verify.
Login Toboggan
I think the Login Toboggan module will solve this problem (and do some other useful things beside, like seamlessly allowing users to log in with their email address so that they don't have to remember their username for your site).
For the record, I haven't upgrade to 6.10 yet, and when I log in (on my sites without Login Toboggan, at least), I get redirected to the user page.
The upgrade breaks Login Toboggan too
In general Login Toboggan works great for this, but the upgrade to 6.11 breaks Login Toboggan also.
The patch to core that caused this problem is still active and working to fix this new bug it introduced. #292565: Regression: Can't set /user to 403 page (was: login destination is broken)
.
Check this fix out, it worked for me http://drupal.org/node/460024
Upgrading to
Upgrading to http://drupal.org/drupal-6.12 solves this.
See also http://drupal.org/node/461882 item #292565 , and http://www.bobbymods.com/upgrade-drupal-612.
happening in 6.1.3
i'm seeing this problem again in drupal 6.1.3 ... when i login, always gets redirected to the account page .. anyone else seeing this?
Duplicate Post
We are here, no need to post a duplicate unless you are not getting an answer. And then you can add a "bump" comment to get it up the list again.
http://drupal.org/node/450588 Duplicate reply:
I haven't had any problems with D6.13, it's been a while since upgrade, all has been well since. I was surprised to see a new post here.. hmmm Makes me wonder whats up.
You are using a login block, The login page will possibly redirect.
i'm using 6.1.4 and it's the
i'm using 6.1.4 and it's the same. I am using logintoboggan, but this doesn't have an option to stay on the same page?
Drupal Web Designers Surrey South East England www.lightflows.co.uk