In the login destination setting page (see image) I checked the box...

Return user to where he/she came from. (Preserve destination)
If checked, 'destination=' parameter specified in the URL will be used to perform redirection.
NOTE: All options below will be ignored then!.

Users click on a node they can not view
they go on login page
they input their user and password
they are on their user page

before I installed protected node module where there is indicated a conflict with login destination.
So after login destination does not work I disable and then unistalled protected node module, so the answer is:
now where I'm wrong?

CommentFileSizeAuthor
a.jpeg70.63 KBfabrizioprocopio

Comments

asb’s picture

Same issue here. I assume that "login destination" can only evaluate the referrer (= login page)?

fabrizioprocopio’s picture

yes, you are right...

asb’s picture

Possible workarounds: http://drupal.org/node/418478

fabrizioprocopio’s picture

I got a doubt now:

module ought to let user that go to a page they can't see as anonymous (e.g.,: node/03 assume with a custom URL olny-logged-users-page)
to be redirect to the login page that will be composed not as usual (/user) but with a different built URL (e.g.: /user?destination=only-logged-users-page or else /user?destination=node/03)
so to bring user back to the page (olnly-logged-users-page or else node/03) they come from

if users land to the home page it means the function "Preserve destination" doesen't work.. it got no sense

tell me if I'm wrong...

mithy’s picture

Version: 6.x-2.12 » 7.x-1.x-dev
Assigned: Unassigned » mithy
Status: Active » Fixed

The referrer when logging from the login form is the user page. This behavior has been changed to be the page user visited before going to the the login form. This works out of the box in 7.x.

heck’s picture

similar issue... when i click on user/register, i stay on the login page.. but doing it twice gives me what i want

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

izmeez’s picture

Is this also fixed in the 6.x-2.x branch?

mithy’s picture

No, I decided to give up any development on that branch because 7.x is already on the roll.

heck’s picture

any updates on this issue? thanks

mithy’s picture

it is implemented on the 7.x-dev. It won't be implemented on the 6.x branch.