yggdrasil 78 Posted Saturday at 09:38 AM Isn't impressive that Smarty has no redirect variable? At least I was never able to find one. Using JS to redirect is not ideal. 0 Quote Share this post Link to post Share on other sites
Tapeix 1 Posted Monday at 03:19 PM Well I have been using the following code for years to redirect and it has been working well. {if $templatefile == 'homepage'} {if $loggedin} <html> <body> <script type="text/javascript"> window.location.replace("https://domaincom/clientarea.php"); </script> </body> </html> {/if} {/if} The code determines the current template, then checks if the user is logged in and then redirects the user to the page. It takes about 2 seconds to process. 0 Quote Share this post Link to post Share on other sites