-
Notifications
You must be signed in to change notification settings - Fork 232
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
Documentation for setting base path incorrect. #171
Comments
A bit more details to help out anyone else, and I'll probably submit a pull request later. The general matcher uses
If you set this value
Note those two forward slashes in the route, which won't match anything. If you do @elliotboney's route, you get this:
May or may not be what you want. I set it with $router->setBasePath('/alto-app');
|
I believe |
Can confirm, rtrim($base, '/') fixed all my issues. |
I think with / and without it's same, but work another. How about fix it? |
Just a quick edit to the set base path documentation to save some other people the confusion.
It's documented as
and what works is only (without the
/
):The text was updated successfully, but these errors were encountered: