Authenticated user gets redirected to the front page instead of the current page. We use the Superfish module for menus, could that cause a problem? I also tried to use to Menu Tokens module to insert a "current" query parameter after the login/logout link, without success (link not appearing). I haven't had time to debug it more. It could be a configuration issue though.

On login I would expect to get redirected to the page where the user was before getting to the login form. On logout I would expect to get back to stay on the page where the logout link was clicked.

CommentFileSizeAuthor
#8 1280358-8.patch1.58 KBAnonymous (not verified)

Comments

mithy’s picture

Please clear caches. It should work after this.

seandunaway’s picture

I'm experiencing the same but on 6.x-dev

Buckminster_Bond’s picture

I've cleared caches (both via Drupal and in phpMyAdmin to be sure) but am still experiencing that is not redirecting to the previous page, but instead goes to the front page. Not sure if I am correct in assuming that should redirect to what is really the referring page or not.

(Redirecting to any other node works well.)

mithy’s picture

Hi

If you updated to the stable from any kind of dev or beta without installing from scratch you may have such issues. Uninstall the current LD (not only uncheck it on the modules page, but also remove all the data in DB on uninstall page), because the installer changed since dev. Redirecting to the current page is tricky, because it involves posting the current page id all way long. You can check, whether the link to login form has sth like this: ?current=node/1.

Anonymous’s picture

@#4 it works for logging out, the url is logout?current=page. Except it doesn't work for login links, there is no ?current part,

Anonymous’s picture

Title: <current> is not working as expected? » <current> is not working as expected? (check user/login)

I was using "user/login" path, instead of just "user", which works fine. Problem solved.

nafmarcus’s picture

But I need to user "user/login" in order to get the system to automatically hide the LOGIN link when logged in. So I the login redirect is not working.

Anonymous’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new1.58 KB

Indeed, I needed that too. Here is a patch.

mithy’s picture

Category: support » bug
Status: Needs review » Fixed

Fixed on dev. The patch did not include changes to the login_destination.install file.

Status: Fixed » Closed (fixed)

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