Back to the page the user was in: How to get this work

jvieille - July 3, 2009 - 05:36
Project:Login Destination
Version:6.x-2.3
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

What I look for is the simplest feature one could expect from this module: redirect anyone who logs in to where he was, without any specific condition.
I did not find a snippet to do that, only complex stuff that does not work.

I tried that from one of the scripts I found
return $_SESSION['login_redirect'];

What shall I put in URL destination settings?

Why isn't a simple option on the setting page that would do that without any php code in the admin form?

#1

jboeger - July 6, 2009 - 17:12

I have the same question.

Site visitor sees job, wants to apply. (using jobsearch module, Drupal 6)

Has to login or create account. After this... want them to be sent back to the job node that they were on (and want to apply for.)

#2

Guru - August 11, 2009 - 04:43

Try the solutions here: http://drupal.org/node/225890

--
Sawant
http://twitter.com/sawant

#3

jvieille - August 11, 2009 - 15:00

Thanks, I had already look at this page, but could not figure out what they were tlaking about.
This much too complex for a so simple feature.

It took me one minute to write a rule (RULES module) to redirect the user to frontpage after login...

So what is the purpose of this module?
I thought it would provide an easy way to redirect the user after login without writing convoluted snippets and without requiring a powerful module such as RULES.

 
 

Drupal is a registered trademark of Dries Buytaert.