make destination path work optionally

rolfmeijer - June 18, 2009 - 11:55
Project:Login Destination
Version:6.x-2.3
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Issue tags:ToDo
Description

Now when you check “Preserve destination” only this option will work. So whatever you choose for your Static URL of PHP snippet (in URL destination settings) will not work. And the other way around, if “Preserve destination” is not checked only the Static URL or PHP snippet will work.

I would like very much that the Static URL or PHP snippet would work as default but when I add ‘destination=example/path’ to my path, the destination will be example/path and not the Static URL or PHP snippet.

Could that be a clever option? Or a stupid request? ;-)

#1

droidenator - July 23, 2009 - 15:25
Category:feature request» bug report

This, to me, is a bug unless I'm completely missing the point of the login redirect module.

For example, if a user logs in from "user/login", that would suggest to me that they're just wanting in to the site so I'd want to redirect them to the dashboard I've created since it's intended to be their internal homepage. However, if they were trying to access the internal forum ("internal/forum"), that's where they should go upon login.

When I turn on "Preserve destination", login from "user/login", it redirects to the user's profile page and that's it.

#2

droidenator - July 23, 2009 - 20:22

I've written up a blog entry on how I got Login Destination to use the user's destination if it's there or redirect to your default destination if not.

http://www.interworksinc.com/blogs/scorrales/2009/07/23/taking-control-y...

#3

rsvelko - October 21, 2009 - 12:34

todo

 
 

Drupal is a registered trademark of Dries Buytaert.