Static GitHub Issues

[2638] History path lost on Safari while using router.base on nuxt.config.js

prev: axios request api url is https from npm run dev
next: this.$router not working in methods

Here are steps and requirements to reproduce:

  • Any iOS device, tested on iOS11/10/9
  • Nuxt 1.1.1
  1. Install nuxt-starter-kit template
  2. Add router configure in to nuxt.config.js ↓
router: {
  base: '/abc'
}
  1. Create a.vue in pages directory, add <nuxt-link to="/b">To Page B</nuxt-link> in template
  2. Create b.vue in pages directory, add any text into template
  3. Open "http://you-host:your-port/abc/a"
  4. Press "To Page B" button, after page loaded, press the back button

Actual result: It return to "http://your-host:your-port/abc" Excepted result: Should return to last page "http://your-host:your-port/abc/a"

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2293">#c2293</a>)</em></sub></div>