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

XF 1.1 login Redirect

Discussion in 'Styling and Customization Questions' started by time, Jul 1, 2013.

  1. time

    time Active Member

    How to login as a member, Redirect to another page

    For example, members are at home, after logging in, Redirect to the topic id = 3
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Edit the login_bar_form template and change this:

    <input type="hidden" name="redirect" value="{$requestPaths.requestUri}" />
    To this:
    <input type="hidden" name="redirect" value="{xen:link 'threads/thread-title.id/'}" />
    Change thread-title.id to the actual thread title and ID.
    Last edited: Jul 1, 2013
    Jake Bunce and time like this.
  3. time

    time Active Member

  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    FYI, there are two relevant templates with a redirect specified:

    Admin CP -> Appearance -> Templates
    > helper_login_form
    > login_bar_form
    time likes this.
  5. time

    time Active Member

    Last edited: Jul 8, 2013
  6. reddy ink

    reddy ink Active Member

    How to redirect users to "Home" after login?
    Something like this?
    <input type="hidden" name="redirect" value="{xen:link 'Home/'}" />
    Thank you for your time.


Share This Page