1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Log off of XF = forums page

Discussion in 'XenForo Questions and Support' started by Ryan Kent, Mar 2, 2011.

  1. Ryan Kent

    Ryan Kent Well-Known Member

    Currently when a member logs out of my forums they are instantly taken to the forums. I would like to change this behavior and allow the user to stay on the same page they were viewing at the time they logged out. Can anyone point me in the right direction?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Edit this template:

    Admin CP -> Appearance -> Templates -> navigation_visitor_tab

    Search for "logout". There are a few instances of the link, like this:

    Code:
    <a href="{xen:link logout, '', '_xfToken={$visitor.csrf_token_page}'}" class="LogOut">
    
    Add a redirect, like this:

    Code:
    <a href="{xen:link logout, '', '_xfToken={$visitor.csrf_token_page}', 'redirect={$requestPaths.requestUri}'}" class="LogOut">
    
    I tested this and it works.
     
  3. Floris

    Floris Guest

    Jake ftw! :)
     
  4. Ryan Kent

    Ryan Kent Well-Known Member

    +1! worked perfect, thx again Jake
     

Share This Page