-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why the assets must be absolute path? #3986
Comments
React router cannot support relative paths -- that just breaks the idea of routing. If you need relative paths, you can use the hash-router mode of React Router. |
To expand on this a little.. it’s not a React Router limitation. You just can’t have relative paths if you want to have client-side routing. Think about it: you want your app to load for arbitrarily nested URL like So our default is to emit absolute paths. By specifying the |
Why the assets must be absolute path not relative path?
What exactly is the reason behind the scene?
Is react router not supporting relative path?
Or is webpack config not letting you use relative path?
Thank you.
The text was updated successfully, but these errors were encountered: