[Bug]: RR7 - With basename
configured, .data
requests against root index not correctly routed
#12295
Labels
basename
configured, .data
requests against root index not correctly routed
#12295
What version of React Router are you using?
7
Steps to Reproduce
Minimal repro
vite.config.base
andvite.config.reactRouter.basename
.Link
componentto
the root index, or an action against the root index..data
requests against root index are routed tolocalhost:5173/${basename}.data
, rather than e.g.localhost:5173/${basename}/_root.data
..data
requests against root index 404.Expected Behavior
.data
requests against root index should resolve accounting for configuredbasename
.Actual Behavior
.data
requests against root index 404..data
requests against nested routes resolve as expected.In minimal repro above, try clicking links to
Home
and submitting action on that route. Then try the same atAbout
. Observe thatAbout
works whileHome
(root index) doesn't.The text was updated successfully, but these errors were encountered: