Modifications to Deflector theme's Sign In & Register buttons

Unknown
edited August 2018 in Product

For Support and all CSM's

Just an fyi we've modified the Sign In and Register buttons in the nav bar of the Deflector theme. They now handle a Target parameter in the URL. Previously, you would always be directed to the home page.

Why the changes were made

The Groups Invite Email now includes a link directly to the group home page, if a user clicks on the link they will be brought directly to the group homepage. In the case the user isn't signed in and they click on the sign in button they will be redirected to the sign in page. Previously the sign in button didn't include the Target parameter, so once the user logged in they would be brought to the index page. Now the sign page will redirect you to the target URL.

Who does this effect?

Communities using groups and have the Deflector (possibly some other themes). If a customer is having issues with their Navbar buttons, their theme will need to be updated.

Old code:

<a class="button" href="{link path="entry/signin"}">{t c="Sign In"}</a>
<a class="button" href="{link path="entry/register"}">{t c="Register"}</a>

New code:

<a class="button" href="{link path="signin" target="current" format="%url"}">{t c="Sign In"}</a>
<a class="button" href="{link path="register" target="current" format="%url"}">{t c="Register"}</a>