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?

Comments

jboeger’s picture

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.)

Guru’s picture

jvieille’s picture

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.

rsvelko’s picture

"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."

I am the new maintainer cause I was pissed off of the 50+ issues here and that the module does not cover the simplest use cases.

Somebody messed things up big time here :)

This will definitely be fixed in the next 2.6 release.

rsvelko’s picture

Status: Active » Postponed