You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a browser, history and routes can be set with javascript (i.e. got to subroutes like /login, /documents/...) so the user can navigate without reloading, but when the page is reloaded - or directly accessed, as these route are not defined, the browser gets a 404.
I can define these route as serving the content of my root index.html, but it kind of defeats the purpose of having a staticFiles.externalLocation() method.
Am I missing something ? If not so, it would be very convenient if there was an easy way to serve the same static file for multiple routes.
The text was updated successfully, but these errors were encountered:
Hi.
In a browser, history and routes can be set with javascript (i.e. got to subroutes like
/login
,/documents/
...) so the user can navigate without reloading, but when the page is reloaded - or directly accessed, as these route are not defined, the browser gets a 404.I can define these route as serving the content of my root
index.html
, but it kind of defeats the purpose of having astaticFiles.externalLocation()
method.Am I missing something ? If not so, it would be very convenient if there was an easy way to serve the same static file for multiple routes.
The text was updated successfully, but these errors were encountered: