Why? T10311244 this situation... if $ _ SERVER ['http _ referer'] is used, the full path is provided. after the verification is successful, redirect does not support full-path jump. In addition, parameters are available on the page before the user logs on, for example
http://localhost/a/jz/index.php/Home/Test/test.html?t=10311244
What should we do in this situation?
Reply content:
If $ _ SERVER ['http _ referer'] is used, the full path is provided. after the verification is successful, redirect does not support full-path jump. In addition, parameters are available on the page before the user logs on, for examplehttp://localhost/a/jz/index.php/Home/Test/test.html?t=10311244
What should we do in this situation?
http://localhost/a/jz/index.php/Home/User/login?redirect=/Text/test.html
Save the url to the session before logon. after the session is completed, retrieve the url and redirect it.
You can use the redirect () function to redirect the full path.
redirect("http://google.com");
echo "《script》history.go(-1);《script》";