I'm using historyApiFallback so that my react application can use the newer client-side routing / HTML 5 history. I've set historyApiFallback to true. This works when the client-side route is something like /users or /home, etc. This does not seem to work if the client-side route is something like /users/1, though. It tries to look for scripts within my HTML file relative to /users. Even if my HTML script is like ...
<script type="text/javascript" src="./static/app.js"></script>
it looks for that at /users/static/app.js.
I'm using
historyApiFallbackso that my react application can use the newer client-side routing / HTML 5 history. I've sethistoryApiFallbacktotrue. This works when the client-side route is something like/usersor/home, etc. This does not seem to work if the client-side route is something like/users/1, though. It tries to look for scripts within my HTML file relative to/users. Even if my HTML script is like ...it looks for that at
/users/static/app.js.