• After reading this
    https://ultimatemember.com/redirect-users-logging-wordpress/

    We are trying to figure out how to get a handle on the post-login redirect. Our idea seems simple and maybe sites (and other CMSes) do this already by design…

    If I am on the /downloads page and I click login, I want to have the user come back to the /downloads page after logging in. Since this is not just a dropdown option, what are the possibilities? Thanks in advance – Jeremy

    Accuraty Solutions
    https://www.accuraty.com/

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @accuraty,

    Have you tried “Refresh active page” in Action to be taken after login?

    Regards.

    Thread Starter Accuraty

    (@accuraty)

    I am truly surprised that “Refresh active page” means what I described above. But yes, you are right, it does work as expected and needed, thank you.

    Please – maybe – consider changing the wording so it is more obvious what “Refresh active page” does or at least add some on-page help, tooltips, or easy to find in-context docs that would better explain what that feature is doing and what the expected or possible results are. Thanks again – Jeremy

    • This reply was modified 7 years, 3 months ago by Accuraty.
    Stephen

    (@spiritsynaesthetic)

    Hi @ultimatemembersupport,
    I’m attempting to have users redirected to the referring page once logged in, similar to Accuraty.

    As per this post, I’ve set the behavior for the specific role when logging in to “Refresh Active page” and it appears to just perpetually refresh the login page, logging the user out each time it does so.

    In another thread, you mentioned that this could be due to htaccess or other server settings, could you be more specific as to what might need to be configured on the server or in htaccess to allow users to continue to the page to which they were intending to visit once logged in?

    Stephen

    (@spiritsynaesthetic)

    Hi @ultimatemembersupport,
    I found the following Stack Overflow thread on the topic, and it looks like the implementation would need to be directly in the PHP code that generates the login on the login page to which users are redirected when trying to access a private page.

    I’m running UM 1.3.88

    Stephen

    (@spiritsynaesthetic)

    Figured this one out. The Redirect URL field can and must be left blank. When the protected page is accessed, the visitor is automatically redirected to login, with an appended URL of their referring page, once logged in, they are redirected back to their intended page.
    If you have already set a bunch of redirect URLs up because you thought that was required, you might need to run the following SQL query via phpmyadmin and it will set all the redirect URLs to blank.

    UPDATE wp_postmeta SET 'meta_value'='' WHERE 'meta_key' LIKE '_um_access_redirect'

    The meta_value and meta_key were enclosed in backticks ` but that interferes with the way the code is demarcated on this forum.

    • This reply was modified 7 years ago by Stephen. Reason: Fix code
    • This reply was modified 7 years ago by Stephen.
    • This reply was modified 7 years ago by Stephen.
    • This reply was modified 7 years ago by Stephen. Reason: Fix Code final

    Hi,
    I’m setting up Ultimate Member.
    The Register works fine.
    The Login however leads, after filling in the fields, to a page with an avatar of the member although i want i to redirect (after login) directly to a specifice page.
    How can i do this ?
    Thanks,
    Martin

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Redirect to Referring Page after Login’ is closed to new replies.