• catmaniax

    (@catmaniax)


    Hello.

    I’ve been searching for many hours to figure out if there is any way to reload the current page the user is after clicking on the logout link-page.

    Please let me know.
    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • borisv

    (@borisv)

    You need to elaborate further if you hope to get any support…

    Thread Starter catmaniax

    (@catmaniax)

    I display the UM login form in a text widget with the UM shortcode and there is the logout link there if you are logged in.

    As you may know, logout for UM works as a page, for example:
    site.com/logout

    And when clicked, it’s programmed to logout the user and redirect him to the homepage.
    What I wish to achieve, is to stop this redirection to the homepage and just reload the current page he is on after he clicks on logout.

    • This reply was modified 8 years ago by catmaniax.
    borisv

    (@borisv)

    Well, it’s gonna have to redirect some place.

    Luckily, we have the url redirect option in Admin panel => Ultimate Member => User Roles => Members.
    Click on Edit.
    Logout Options.
    Go to custom url.
    Set Custom Redirect URL.

    I hope this helps,

    Thread Starter catmaniax

    (@catmaniax)

    Thanks for the reply.

    Well, the option I want seems to be only available in the Login Options “Refresh Active Page”:
    https://s14.postimg.org/nr55qa6w1/image.jpg

    Is there any chance this feature to be added to a future update to the Logout Options as well?

    borisv

    (@borisv)

    You said that the option you need is for logging out not logging in, in which case it’s the pull down menu below in your screenshot that you would have to change. If you want the user to log out (from the cog icon) on the profile page and remain there, then you simply add ‘/user’ to the Set Custom Redirect URL.

    I’ve been searching for many hours to figure out if there is any way to reload the current page the user is after clicking on the logout link-page.

    Come to think of it, you can not redirect to the same page but a home page or a custom page.

    • This reply was modified 8 years ago by borisv.
    Thread Starter catmaniax

    (@catmaniax)

    Yeah, it’s the logout. I posted the screenshot to show that the option I need for logout (Refresh active page), only exists for login.
    I do not want to set a custom redirect url because there is no specific URL.
    The user could be on any page/post the time he clicks logout and I want him to remain on that page too when he logs out.

    borisv

    (@borisv)

    To put in terms you’ll understand, you have to dig deep into files and modify codex. It would probably be better if you create a new widget where you could add the code to do what you want after logout.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Reload current page after Logout’ is closed to new replies.