0
Hello,
I have the following question. When the user accesses the page: /wallet, there is a validation to know if he is logged in, if he is not, he is redirected to the login page, but after the login he falls on the home page. It would have to redirect to the page: /card, because he tried to access there first?
Follow the code that goes in the header and validate the user:
<?php
define ( "_WOJO" , true );
require_once ( "../init.php" );
if ( ! App :: Auth () -> is_User ())
Url :: redirect (SITEURL . '/' );
?>
It worked out! Thank you.
– Leonardo