XF 1.5 Redirect User after email confirmation.

Okenyon

Active member
Whats the best/easiest away to redirect a user after they click the email confirmation?

Is it done via the template attached?

Screen Shot 2016-11-09 at 10.57.40.webp
 
Thats @Jake Bunce

I'm guessing its in this code:

Code:
<div class="baseHtml">
        <ul>
            <xen:if is="{$redirect}"><li><a href="{$redirect}">{xen:phrase return_to_page_you_were_viewing}</a></li></xen:if>
            <li><a href="{xen:link index}">{xen:phrase return_to_forum_home_page}</a></li>
            <xen:if is="{$canEditProfile}">
                <li><a href="{xen:link account}">{xen:phrase edit_your_account_details}</a></li>
            </xen:if>
        </ul>
    </div>

What would I need to edit to redirect to a URL? (sorry I don't code)

Thanks.
 
Add this code to the top of the register_confirm template:

Code:
<xen:container var="$head.redirect">
<meta http-equiv="refresh" content="0;URL='/account/upgrades'" />
</xen:container>
 
It actually works.

The automatic redirection is working after clicking on the validation link sent in the email, but I am wondering if there is a more suitable code for the current version?
 
The meta line will still be working, but the <xen:container /> part is printing to your browser and is just being ignored.

So, yes, the redirect will still happen, but the code isn't actually valid for XF 2.
 
Back
Top Bottom