-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Build output has canonical link linking to the same URL as another alternate link, leading to SEO issues #3099
Comments
We have the same issue. Just check the head of https://orakel.com/ and you'll see duplicate alternate link for the i18n Link. |
@WaldemarEnns Why the confused emoji? Aren't you getting the same alternate links (href) on all the locales? |
Sorry for the late response, was a bit swamped with other things, I'll be investigating this issue in the coming days. |
@memic84 I just wanted to express that I am struggling with the same issue 😀 Yes, I get the same results. @BobbieGoede thanks! |
@memic84 Your issue differs from the that of @WaldemarEnns, and I can't reproduce your issue with their provided reproduction, could you open a new issue with a minimal reproduction preferably using the latest version? 🙏 |
@BobbieGoede Thank you for the quick check, and indeed i see that i have missed some releases from the last 2 weeks. If this still occurs, i'll open a new issue. @WaldemarEnns Ah, didn't get the emoji :) seems after all a different issue. |
@memic84 |
@WaldemarEnns |
Are you sure? IMO the canonical and alternate link should both not exist at the same time and point to the same URL e.g. |
The rules for meta tags are quite complex and the documentation is fragmented (I get lost every time I need to refresh my memory). From what I understand the canonical link should point to the preferred (duplicate/original) URL for the current page, while alternate link should point to all alternates of the current page including the current page itself (see google video for reference at timestamp https://www.youtube.com/watch?v=8ce9jv91beQ&t=588s). Relevant docs: |
Environment
Reproduction
Reproduction here:
https://stackblitz.com/edit/github-q5ddsy-62oh2a?file=.output%2Fpublic%2Findex.html
Summary: Using nuxt-i18n with a default language and a translated language
Describe the bug
Please check the output index.html at
npx nuxt build --preset github_pages
Take a look at the auto-generated
<link>
elements, especially therel="alternate"
&red="canonical"
:Notice, that the same URL
https://example.com
is being referred to, from:That leads in SEO indexing/crawling, to an issue:
URL that I requested indexing for: https://waldemarenns.de/
Bing Webmaster Tools:
Screenshot:
Google Page Speed Insights:
Screenshot:
Take a look: https://pagespeed.web.dev/analysis/https-waldemarenns-de/30jj8518lg?form_factor=desktop
ℹ️ Feel free to inspect my site that is mentioned.
Additional context
Refers to #2925
Logs
No response
The text was updated successfully, but these errors were encountered: