Custom routes
What matters when adding routes and how to avoid collisions.
Custom routes are easy to add, but route order and slug collisions are critical.
Watch out for
- static routes before catch-all patterns
- no slugs that shadow system paths
- route behavior with and without trailing slash
Recommendation
After every new route, quickly verify:
- normal content pages
- tag pages
- admin routes
- index endpoints
That catches conflicts early.