Roots Discourse

Refresh page in app with Bedrock/Sage and Vue.js

Greetings.

I have setup locally an app using bedrock and sage with vue.js inside the theme, as is given from https://github.com/pixelcollective/SageJS .

The problem I am facing is this: after installing vue-router, after navigating to a link from the app, when I hit refresh on the browser I get “page not found” error and so I have to navigate again to the beginning of the app.

Is this behavior something I can work from the sage theme or from bedrock or could it be something related to apache( I find the last option much more improbable).

`In the .env file of bedrock I have:
  WP_ENV='development'
  WP_HOME='http://localhost:8900'
  WP_SITEURL="${WP_HOME}/wp"
  WP_DEBUG_LOG=/path/to/debug.log`

and in config.json of sage:

  "publicPath": " /app/themes/SageJS",
  "devUrl": "http://localhost:8900",
  "proxyUrl": "http://localhost:8900",
  "cacheBusting": "[name]_[hash:8]",

Let me know if I can provide any more info. Thank you.