New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
previous_url() not loading the base path together #2378
Comments
@jim-parry I will like you to check this or any other person |
We have severak current/site_url issues being resolved, and this may well be related. |
yes, i have this issue too.. same previous url, i was digging to solve the problem but really i dont know exactly how codeigniter is setting the setPath, i tried to figgure it out myself but have no success. this line of code from the incoming request class is overwhelming what it does xD I think this needs to be rewritten or something. but yeah Codeigniter try to solve so many problems with only one fix so this is verry hard to do it only if treat all cases separately and not merged so people can understand what the code does. |
Would seem to be related but it's not quite. The fix is simple, though: change line 376 of CodeIgniter.php to:
|
…t baseURL paths and any query vars. Fixes #2378
Hello I had issue with the previous_url() helper when I try to use
redirect()->back()
It does not load the previous url with the base path. For example I was at http://localhost/scriptfolder/admin/auth/login
So when error trigger on form validation redirect back to the previous url as http://localhost/admin/auth/login. So I discovered that the complete url does not session with the scriptfolder together so I did some customization to the Core script which work for me by adding
to the
vendor/codeigniter4/framework/system/CodeIgniter.php
to this
which I know is not good practice so
I don't know if I should say I am suggesting touching the Codeigniter.php to this my edit or any other best method you wish
The text was updated successfully, but these errors were encountered: