i18n
i18n copied to clipboard
How can I remove the query parameters from the hreflang?
How can I remove the query parameters from the reflang URL?
Do you mean hreflang (https://i18n.nuxtjs.org/seo#automatic-hreflang-generation)?
It doesn't seem like you can currently. It generates those URLs the same way as when generating URLs for switching locales.
What's the reason you don't want to include them?
Thanks for a promt reply @rchl 😊
Because we currently use ?page=2 for an infinite product list, and we generate our site in static mode.
So I don't want the canonical/reflang URLs to point to ?page=2, since the HTML that the client would receive, would be the same as ?page=1
canonical already doesn't include query params.
To be able to exclude specific query params there would need to be a new feature implemented.
Sorry, i want to ask. Is possible i remove query params in hreflang that generates from i18n?
No, as stated above
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.