-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Closed
Description
Laravel Version
11.39.1
PHP Version
8.3.16
Database Driver & Version
sqlite
Description
Visiting the path /%c0
on a fresh laravel application results in the fallback route being ignored and the default 404 page will instead be displayed.
This does not only apply to the fallback route but also to wildcard routes.
Route::get('/{path}', fn() => 'Test Wildcard')->where('path', '.*');
Route::fallback(fn() => 'Test Fallback');
Originally discovered in statamic: statamic/cms#11387
Steps To Reproduce
- Create a new Laravel Application
- Create the following route:
Route::fallback(fn() => 'Test');
- Visit http://localhost:8000/awd (you will see
Test
, meaning the fallback route gets registered) - Visit http://localhost:8000/%c0 (you will see the 404 page, which is unexpected)
Metadata
Metadata
Assignees
Labels
No labels