T
TanStack3y ago
xenial-black

Support for base path?

I was wondering if it's possible to set a base path for the router such that all the routes are relative to that value, not unlike React Router's basename property. The use case is that I want to use tanstack router for an app that sits at at site.com/app such that the index would be site.com/app/index, but ideally you wouldn't have to track that base parameter as you're navigating around.
2 Replies
passive-yellow
passive-yellow3y ago
Also interested in this
rival-black
rival-black3y ago
It’s there. routerOptions.basepath

Did you find this page helpful?