add destination argument to login link

Fishysan - November 23, 2006 - 16:52
Project:Login Menu
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:rwohleb
Status:needs work
Description

Hi - great simple mod to add a nice feature.

Something that would be great is the addition of the destination argument in the "Log in" link so that the user's redirected to the page they were viewing when they decided to log in instead of staying on the /user page.

Using the comment login/register to reply functionality;
http://mysite.com/user/login?destination=comment/reply/5%2523comment_form

Or using the new alias created by this module;
http://mysite.com/login?destination=comment/reply/5%2523comment_form

Thanks for contributing this!

#1

rwohleb - January 11, 2007 - 07:48
Assigned to:Anonymous» rwohleb

Agreed. I'll put this on my todo list.

#2

fajerstarter - February 14, 2007 - 11:34

subscribing

#3

christefano - May 23, 2008 - 02:11

Yes! I actually came to the issue queue to post this feature request.

#4

christefano - August 11, 2008 - 08:25
Status:active» needs work

I took a look at this again and thought I had it working, but for some reason it only works for logged in users. As you might imagine, that's the opposite of what we're trying to do.

Oh well, it's late. This needs work (I think I left an extra $destination variable in there) but it's most of the way there.

AttachmentSize
loginmenu_destination_99374.patch 875 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.