-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Which project does this relate to?
Router
Describe the bug
Basepath handling is broken after upgrading to the new RC version.
With basepath set to /app, and the two routes routes/index.tsx and routes/sub.tsx:
- Navigating to
/appin the browser 404s - Navigating to
/app/subin the browser works - Navigating from
/app/subto/appwith<Link to="/">works, but the URL is now/app/app. - Navigating from
/app/appto/app/subwith<Link to="/sub">works, but the URL is now/app/app/sub.
So there seems be a regression in the basepath handling logic.
Your Example Website or App
https://github.com/jakst/solid-start-solid-rc-broken/tree/basepath
Steps to Reproduce the Bug or Issue
- Clone the repo (make sure you clone from the basepath branch)
- Start dev server and open the app
- You'll be met by a 404 on first visit to /app
- Try clicking around and notice the double /app/app URLs
Expected behavior
I expect basepath handling to work like in v1.131.x
Screenshots or Videos
No response
Platform
- Router / Start Version: v1.131.6
- OS: MacOS
- Browser: Chrome
- Browser Version: 140
- Bundler: vite
- Bundler Version: 7.1.7
Additional context
No response
leniency, thenglong, audunru and omridevkomridevk
Metadata
Metadata
Assignees
Labels
No labels