nuxt-community / sitemap-module

Sitemap Module for Nuxt 2
https://sitemap.nuxtjs.org
MIT License
689 stars 127 forks source link

SSG in hash mode generates wrong URLs #250

Open Voltra opened 2 years ago

Voltra commented 2 years ago

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: