• 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

time

Active member
#1
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
 

Brogan

XenForo moderator
Staff member
#2
Edit the login_bar_form template and change this:

Code:
<input type="hidden" name="redirect" value="{$requestPaths.requestUri}" />
To this:
Code:
<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:

Jake Bunce

XenForo moderator
Staff member
#4
FYI, there are two relevant templates with a redirect specified:

Admin CP -> Appearance -> Templates
> helper_login_form
> login_bar_form
 
#6
How to redirect users to "Home" after login?
Something like this?
Code:
<input type="hidden" name="redirect" value="{xen:link 'Home/'}" />
Thank you for your time.


Edit the login_bar_form template and change this:

Code:
<input type="hidden" name="redirect" value="{$requestPaths.requestUri}" />
To this:
Code:
<input type="hidden" name="redirect" value="{xen:link 'threads/thread-title.id/'}" />
Change thread-title.id to the actual thread title and ID.