Pathless directories after dynamic directory not being excluded in url?
https://stackblitz.com/edit/tanstack-router-cqjfmc?file=src%2Froutes%2F_auth%2F%24teamId%2F_detail-layout.tsx
- Navigate to New Layout Directory,
- runtime pathname is
/123/detail-layout/route2/123 but the route ID is /_auth/$teamId/_detail-layout, detail-layout is included in the URL
- original layout route which is nested in _auth but not $teamId works as expected, with runtime path /layout-aaustinm911
StackBlitz
Router Basic File Based Example (forked) - nested folder layouts - ...
Run official live example code for Router Basic File Based, created by Tanstack on StackBlitz
5 Replies
jolly-crimson•2y ago
I've stumbled upon this as well. Seems problems happen when you add the second pathless layout to the route.
This seems like in issue in the library
stormy-goldOP•2y ago
@Tanner Linsley any chance you could address this? struggling here haha

stormy-goldOP•2y ago
@Manuel Schiller @Tanner Linsley any chance you all might be able to take a look at this issue?
quickest-silver•2y ago
I’m checking it out today
exotic-emerald•2y ago
@DiamondDragon Have it been fixed?? because still facing this error you are describing while i am making something now!