Repository navigation
Add a self-referencing canonical tag to every page - #586
Merged
bilgeyucel merged 2 commits intoOct 12, 2026
Merged
Conversation
Pages without canonical_url had no canonical tag, so Google treats tracking-parameter URLs (?utm_source=..., ?ref=...) as duplicates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@jasdeepbhangal-oss is attempting to deploy a commit to the deepset Team on Vercel. A member of the Team first needs to authorize it. |
/blog/2 and the other pager pages took .Permalink, which is page 1. The blog post list moves into a shared partial so head.html and blog-list.html paginate the same collection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
bilgeyucel
approved these changes
Oct 12, 2026
bilgeyucel
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for the PR @jasdeepbhangal-oss!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Search Console flagged 72 haystack.deepset.ai URLs as "Duplicate without user-selected canonical". They are pages reached through tracking links like
/?utm_source=...and/?ref=itsfoss.com. Only pages withcanonical_urlset get a canonical tag, so Google treats each tracking link as a separate copy of the page.This adds a canonical tag pointing at the page's own URL whenever
canonical_urlisn't set. The trailing slash is dropped to match the sitemap and the live URLs (trailingSlash: false). Pages withcanonical_urlkeep it as before.Paginated lists (
/blog/2,/release-notes/3, tag and author pages) point at their own page rather than page 1. The blog post list moves into a sharedblog-list-postspartial so the head and the body paginate the same list, otherwise Hugo reuses the wrong paginator without an error. Any new layout that paginates needs adding to the condition inhead.html.Checked with a local Hugo build against main: every page has exactly one canonical tag, the cross-posted blog posts still point at their original source, and the only other output change is whitespace.
🤖 Generated with Claude Code