sitemap-module
sitemap-module copied to clipboard
SSG in hash mode generates wrong URLs
Steps to reproduce:
- Create a Nuxt project
- Configure its router's mode to
"hash" - Create a page or two
- Install and configure the sitemap plugin (sample hostnames:
http://localhost:3000,http://localhost:3000/#,http://localhost:3000/#/) - Run
nuxt generate - Start a server in the build directory
- 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.0nuxt:^2.15.7