/app/ticketing/settings returns 404 (route ordering bug) #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to Reproduce
/app/ticketing/settingsExpected
Settings page loads (200)
Actual
HTTP 404 — the
/{ticket}wildcard route captures/settingsas a ticket ID before the settings route can matchRoot Cause
In
src/routes/ticketing.phpthe settings routes are registered inside apermission:ticketing.settingsgroup, but Laravel evaluates routes in declaration order. TheGET /{ticket}wildcard (registered earlier in a different group) matches/settingsfirst, looks for a ticket with ID/slug "settings", finds nothing, and returns 404.Fix
Register all specific paths (
/settings,/create) before the/{ticket}wildcard route.Found by QA runner — happy-path suite