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

SEO trailingSlash is being appended twice on 404 URLs #2532

Closed
divine opened this issue Nov 3, 2023 · 1 comment
Closed

SEO trailingSlash is being appended twice on 404 URLs #2532

divine opened this issue Nov 3, 2023 · 1 comment
Labels
🔨 p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage SEO Related to SEO features such as head tags v8

Comments

@divine
Copy link

divine commented Nov 3, 2023

Reproduction

https://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-fpyfzn?file=nuxt.config.ts

Describe the bug

trailingSlash is being appended at the end of URL on 404 pages:

Go to reproduction URL, type any random address that doesn't exist like /en/t/ and you'll get URL appended twice:

<link rel="alternate" href="https://google.com/en/t//" hreflang="en" data-hid="7fcee50">
--
  | <link rel="alternate" href="https://google.com/en/t//" hreflang="en-US" data-hid="1b5d3fd">
  | <link rel="alternate" href="https://google.com/nl/t//" hreflang="nl" data-hid="cbabfd6">
  | <link rel="alternate" href="https://google.com/nl/t//" hreflang="nl-NL" data-hid="4afbd03">
  | <link rel="alternate" href="https://google.com/ja/t//" hreflang="ja" data-hid="396afb4">
  | <link rel="alternate" href="https://google.com/ja/t//" hreflang="ja-JA" data-hid="fbe5b58">
  | <link rel="alternate" href="https://google.com/en/t//" hreflang="x-default" data-hid="6527e7a">
  | <link rel="canonical" href="https://google.com/en/t//" data-hid="5cca6f5">
  | <meta property="og:url" content="https://google.com/en/t//">
  | <meta property="og:locale" content="en_US">
  | <meta property="og:locale:alternate" content="nl_NL">
  | <meta property="og:locale:alternate" content="ja_JA">

Thanks!

Additional context

No response

Logs

No response

@kazupon kazupon added v8 🔨 p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage SEO Related to SEO features such as head tags and removed pending triage labels Nov 6, 2023 — with Volta.net
@BobbieGoede
Copy link
Collaborator

Closing this as I'm unable to reproduce this using the latest release, looks like it has been fixed already 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage SEO Related to SEO features such as head tags v8
Projects
None yet
Development

No branches or pull requests

3 participants