1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
    Dismiss Notice
  3. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Set redirect after logout

Discussion in 'Template Modifications [Archive]' started by Jake Bunce, May 31, 2011.

  1. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    (per this post)

    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.
     

Share This Page