•  » Beta testing
  •  » Standard Pages identification.tpl doesn't use the U_REDIRECT variable

#1 2025-11-16 06:54:34

moberley
Member
2025-11-10
90

Standard Pages identification.tpl doesn't use the U_REDIRECT variable

The standard pages template for the identification page (themes/standard_pages/template/identification.tpl) does not use the $U_REDIRECT template variable if it is set so logging in through that page always redirects to the site's main page instead of the URL in the "?redirect=" query string which is being set by the identification.php file.

I added the following right after the opening <form> tag (line 43) and the page worked as expected.

Code:

{if isset($U_REDIRECT)}
        <input type="hidden" name="redirect" value="{$U_REDIRECT|@urlencode}">
{/if}

Offline

 
  •  » Beta testing
  •  » Standard Pages identification.tpl doesn't use the U_REDIRECT variable

Board footer

Powered by FluxBB