Login redirect to last user page

This topic contains 6 replies, has 3 voices, and was last updated by  Alex Howes 5 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #2254

    Alex Howes
    Buyer
    Post count: 175

    Hello,

    I’ve set the login redirect to last user page, which is working fine. The only trouble is that when a user logs in and their last page was not on my site, or if they go straight to the login page as the first page of a new window, then the page after login is blank.

    Is there a way to fix this?

    Thanks 🙂
    Alex

    #2272

    Patrik
    Moderator
    Post count: 1971

    Hi Alex,

    Kindly share admin details and FTP credentials in private reply so that we can look into this further.

    Regards,
    Patrik

    #2277

    Alex Howes
    Buyer
    Post count: 175

    Hi Patrik,

    I think this is a usersWP bug rather than something specific to my site. Maybe I didn’t explain properly.

    When the option “Last User Page” is selected as the login redirect page, the user sometimes gets redirected to a blank page. This happens if the user’s last page was not on my site, or doesn’t exist (e.g. it’s the first page of a new window). Is it possible to set a fallback option, so that if the users’s last page doesn’t exist it redirects to home?

    Thanks
    Alex

    #2278

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #2279

    Alex Howes
    Buyer
    Post count: 175

    Possibly just checking whether the last user page exists or not would work. If it exists, then redirect there after login, and if not then redirect to the home page. Do you know if there’s an action or filter that gets run that does the redirection? That way I could write a snippet to hook to it.

    #2285

    Patrik
    Moderator
    Post count: 1971

    Hi Alex,

    We will look more into this and fix it in next release.

    Regards,
    Patrik

    #2286

    Alex Howes
    Buyer
    Post count: 175

    Cool, thanks for your help 🙂

Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket