T
TanStack4y ago
metropolitan-bronze

How to add base_path to router?

I have a common prefix in all the urls. basically electron add main_window before the routes. Example: http://localhost:3000/main_window/ is the base url. How can I have this as the base url?
2 Replies
vicious-gold
vicious-gold4y ago
Pass the basepath option to the createReactRouter method
metropolitan-bronze
metropolitan-bronzeOP4y ago
I passed the basepath as /main_window/, but still the pathname's ouput is /main_window, I want that to be / only.

Did you find this page helpful?