XF 2.1 Register complete but no redirect link ?

Idhae

Active member
hello togther,

i found something in the register_complete template that didn't work or i misunderstand ?
HTML:
<xf:if is="{$redirect}">
    <li>
        <a href="{{ link($redirect) }}">{{ phrase('return_to_page_you_were_viewing') }}</a>
    </li>
</xf:if>

Say a guest comes from searchengine to a thread and now he wants to register to reply.
He doe register and after that the template register_complete is showing to him.

What he can see is :
link return_to_forum_home_page
and
link edit_your_account_details


Is it a bug that he can't see the link return_to_page_you_were_viewing or do i misunderstand it ?
HTML:
{{dump($redirect)}}  --> register_complete template
shows me an empty string.


I hope you can help me
 
The redirect stuff isn't supposed to work like you think it is. We do not populate the redirect parameter at all in the default registration flow.

The reason it exists is mostly for legacy reasons and custom registration flows. If there was an external service using XenForo as a registration/user database, for example, then the completion of the registration could redirect to a URL such as this:
Code:
register/complete?redirect=https://example.com
But this isn't something we attempt to populate ourselves in the default code so it is working as it is designed to at the moment.
 
The redirect stuff isn't supposed to work like you think it is. We do not populate the redirect parameter at all in the default registration flow.

The reason it exists is mostly for legacy reasons and custom registration flows. If there was an external service using XenForo as a registration/user database, for example, then the completion of the registration could redirect to a URL such as this:
Code:
register/complete?redirect=https://example.com
But this isn't something we attempt to populate ourselves in the default code so it is working as it is designed to at the moment.

ok, thanks for reply. Then i have to figure it out myself.
 
Back
Top Bottom