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

useLocaleHead: canonical and ogUrl route params are wrongly url encoded #3113

Open
Tofandel opened this issue Sep 20, 2024 · 0 comments
Open

Comments

@Tofandel
Copy link

Environment


  • Operating System: Linux
  • Node Version: v20.11.1
  • Nuxt Version: 3.13.1
  • CLI Version: 3.13.1
  • Nitro Version: 2.9.7
  • Package Manager: [email protected]
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-e34p11?file=pages%2F[...wildcard]%2F[test].vue,nuxt.config.ts,app.vue

Describe the bug

When using single optionnal wildcards for page attributes, the canonical url and og:url created by nuxt-i18n is wrongly url encoded

That is not the case for the alternate urls

Additional context

No response

Logs

{ "id": "i18n-can", "rel": "canonical", "href": "https://example.com/en/some%2Fwildcard%2Fwith-slash/123" } ], "meta": [ { "id": "i18n-og-url", "property": "og:url", "content": "https://example.com/en/some%2Fwildcard%2Fwith-slash/123" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant