Static Siblings Test
About
This test verifies that when a dynamic route has static siblings at the same URL level, the client can correctly navigate to the static sibling even after the dynamic route has been visited/prefetched.
Manual testing instructions
- Click the checkbox next to a dynamic route to reveal it
- Click the revealed link to navigate to the dynamic route
- Use the browser back button to return to this page
- Click the static sibling link (which has prefetch=false)
- Verify the static sibling page renders, not the dynamic route
The key behavior being tested: when navigating to a URL that matches both a dynamic route (e.g., /products/[id]) and a static route (e.g., /products/sale), the static route should take precedence. The route tree delivered by the server includes information about static siblings to facilitate this behavior.
Cross-Route-Group Siblings
/products/sale vs /products/[id] (in different route groups)
Same-Directory Siblings
/items/featured vs /items/[id] (in the same directory)
Parallel Route Siblings
/dashboard/settings vs /dashboard/[id] (in @panel parallel route)
Deeply Nested Static Siblings
/categories/electronics/computers/laptops vs /categories/[slug] (static sibling with multiple layouts along its path)