Routing (Page URLs)
Routing / URL
Deciding which page shows up for each address, like '/about' or '/products/12'.
💡 It's the directory in a building that tells you how to get to 'Floor 3, Room 302'.
🤖 Say this to your AI
Set up routing so a product detail page opens at '/products/[product-id]'. If the product doesn't exist, show a 404 page.
The key word is ‘Routing / URL’. Including it helps AI understand you much more precisely.
📌 Good to know
The part of a URL that changes (like the product ID) is called a 'dynamic route'. The page shown when nothing exists at an address is the '404 page'.
When to use it
- When you add a new page
- When every product needs its own detail page
Also called: url, page address, link, path, navigation, 404, dynamic route, slug