Serving from subfolder #9230
-
Hi, I am trying to get my PWA/SPA to serve properly from a subfolder and it is mostly working in dev mode by having done the following:
However, some of my routes seem to be redirecting wrongly. I just assumed that UPDATE: I have also tried adding a trailing slash to the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Well, I figured out what was causing my issue, I was manipulating the browser history with
which was messing up those pages. I have now changed this to:
and everything is now working as expected! |
Beta Was this translation helpful? Give feedback.
Well, I figured out what was causing my issue, I was manipulating the browser history with
.pushState
on some pages, and pushing the route as if it were top level, i.e.which was messing up those pages. I have now changed this to:
and everything is now working as expected!