sitemap-module icon indicating copy to clipboard operation
sitemap-module copied to clipboard

SSG in hash mode generates wrong URLs

Open Voltra opened this issue 3 years ago • 0 comments

Steps to reproduce:

  1. Create a Nuxt project
  2. Configure its router's mode to "hash"
  3. Create a page or two
  4. Install and configure the sitemap plugin (sample hostnames: http://localhost:3000, http://localhost:3000/#, http://localhost:3000/#/)
  5. Run nuxt generate
  6. Start a server in the build directory
  7. Go to the sitemap URL

Expected behavior: URLs present in the sitemap would include the hash part

Observed behavior: URLs present in the sitemap omit the hash part (e.g. what should be http://localhost:3000/#/test becomes http://localhost:3000/test in the sitemap)

Versions:

  • @nuxtjs/i18n : ^7.2.2
  • @nuxtjs/sitemap: ^2.4.0
  • nuxt: ^2.15.7

Voltra avatar Jun 03 '22 20:06 Voltra