Skip to content

Serving from subfolder #9230

Answered by ssuess
ssuess asked this question in CLI - PWA mode
Discussion options

You must be logged in to vote

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.

history.pushState(
          {},
          null,
          '/mypage/' + encodeURIComponent(params)
        )

which was messing up those pages. I have now changed this to:

history.pushState(
          {},
          null,
          this.$router.options.base + 'mypage/' + encodeURIComponent(searchparams)
        )

and everything is now working as expected!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ssuess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant