Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSG in hash mode generates wrong URLs #250

Open
Voltra opened this issue Jun 3, 2022 · 0 comments
Open

SSG in hash mode generates wrong URLs #250

Voltra opened this issue Jun 3, 2022 · 0 comments

Comments

@Voltra
Copy link

Voltra commented Jun 3, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant