• Resolved daybo

    (@daybo)


    Hi,

    Does anyone know if we can extract the requested page and pass it through to the login screen? I would like a user to click on a link, if they are not allowed access to direct them to a login screen, then if successful they get put through to the page they had requested originally.

    I know how to do the login screen, and redirect if successful, but what I need to know is if I can get the originally requested page passed through to UAM?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    this is exactly what I found out, too. After login succeeded, the user will be taken to the dashboard instead of taken to the requested page.

    Seems like that you’ve got figured out a workaround to forward the user to the requested page via permalink after he logged in successfully. How can this be implemented?

    Regards
    Lars

    Thread Starter daybo

    (@daybo)

    Hi Lars,

    I am using the Peter’s Login Redirect plugin, and have set up role-based redirects. So once a particular user with a defined role logs in they get redirected to the correct page.

    My issue is that I am trying to provide custom login screens depending on the link the user follows. I would like to know what the requested page is, but it would seem that UAM drops this information when it finds the user hasn’t logged in yet. I haven’t yet found a way around this.

    David

    Plugin Author GM_Alex

    (@gm_alex)

    Are you using the redirect feature to show the login screen? If you are using the widget or the [LOGIN_FORM] tag at the restriction message, the user should be redirected to the page where he logged in.

    Thread Starter daybo

    (@daybo)

    Hi Alex,

    Yes, I am using the redirect in Settings->Other Settings. I am redirecting to a custom URL. The normal /?redirect={URL encoded URL} is missing from the link now, so I don’t know how to recover the original requested page.

    Thanks
    David

    Plugin Author GM_Alex

    (@gm_alex)

    Will be included with the next version, because it duplicates the following issue I will close this one: https://github.com/GM-Alex/user-access-manager/issues/155

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Getting page requested and redirect to requested page after login’ is closed to new replies.