jpierlot
7 years agoGuide
Auto redirect to signin page
Hi guys,
We are building a private Community. We want to redirect users on a custom page. In the page initializer of the Studio, I added the following code:
<#if page.name == 'CommunityPage' >
<#if user.anonymous>
<# assign redirect_url = '/t5/custom/page/page-id/welcome?locale=en' />
</#if>
</#if>
But all unregistered users are always redirected to the following page: https://xxxxx.com/t5/user/userloginpage?redirectreason=notregistered&dest_url=XXXX.
Would anybody know how can I avoid this redirection so that the code in the Page initializer goes through?
Thanks in advance,
Julien.