01-16-2017, 02:20 PM
Hi again,
I've been trying to change the redirection in the login script. So on first login the user is directed to user_settings.php instead of index.php
But if $dest is set, it seems to skip custom_login_script.php. And whenever no one is logged in, the user is always redirected to login.php with destination login.php?dest=index.php.
I've been looking to remove the automatic redirection of $dest, but I fail to see where this part of the URL is created.
So if I'm not logged in and go to my "domain.com/userspice/" it willl auto redirect to "domain.com/userspice/users/login.php?dest=index.php" and custom_login fails to load and the user is redirected to index.php
if I go to "domain.com/userspice/users/login.php" everything is fine, and on first login I'm redirected to user_settings.php
I've been trying to change the redirection in the login script. So on first login the user is directed to user_settings.php instead of index.php
But if $dest is set, it seems to skip custom_login_script.php. And whenever no one is logged in, the user is always redirected to login.php with destination login.php?dest=index.php.
I've been looking to remove the automatic redirection of $dest, but I fail to see where this part of the URL is created.
So if I'm not logged in and go to my "domain.com/userspice/" it willl auto redirect to "domain.com/userspice/users/login.php?dest=index.php" and custom_login fails to load and the user is redirected to index.php
if I go to "domain.com/userspice/users/login.php" everything is fine, and on first login I'm redirected to user_settings.php