-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Bug: Issue in the route, redirect to parent domain, if you put / at the end of url #3595
Comments
Please try to edit your
I'm closing this, since it doesn't seem to be a bug, but feel free to continue conversation. |
Can you please review my
|
Please copy the default |
Description
Route redirect to parent domain when I put / at the end of the URL
For example:
My URL is http://localhost/pep_digital/dashboard
When I put / at the end like http://localhost/pep_digital/dashboard/
It redirects me to http://localhost
Please note my base URL is: http://localhost/pep_digital/
And the following routes I tried for all the issue is the same.
or
$routes->match(['get'],'dashboard', 'Dashboard::index');
or
$routes->get('dashboard', 'Dashboard::index');
Edit
After visiting this link http://localhost/pep_digital/dashboard/test/
It redirects me to http://localhost/dashboard/test
And
https://localhost/pep_digital/dashboard/test/dashboard/test/
It redirects me to https://localhost/dashboard/test/dashboard/test
It removing the 1st segment from the url.
CodeIgniter 4 version
4.0.4
Affected module(s)
I think this one
\system\Router\RouteCollection.php
Context
NOTE
I have tried it with the latest updated branch.
The text was updated successfully, but these errors were encountered: