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
Agreed. I'll put this on my todo list.
#2
subscribing
#3
Yes! I actually came to the issue queue to post this feature request.
#4
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
$destinationvariable in there) but it's most of the way there.