Skip to content

Conversation

@MrHinsh
Copy link
Member

@MrHinsh MrHinsh commented Jul 28, 2025

This pull request focuses on improving SEO for guide pages by refining meta tags, canonical URLs, and hreflang links. The changes enhance the discoverability and indexing of guide versions across languages and versions.

SEO Enhancements:

  • Hreflang Links for Multilingual Support: Added hreflang links for all available language versions of a guide, ensuring search engines can identify equivalent pages in different languages. (module/layouts/_partials/components/seo/guide-version-links.html)

  • Canonical URL Update: Changed the canonical URL logic to always point to the section root for all guide versions, not just the latest. This ensures consistent indexing of guide pages. (module/layouts/_partials/functions/get-canonical-url.html) [1] [2]

Meta Tag Adjustments:

  • Robots Meta Tag for Historical Versions: Updated the robots meta tag for non-latest guide versions to allow indexing (index, follow) instead of preventing it (noindex, follow). This improves visibility for historical versions. (module/layouts/_partials/components/seo/guide-version-meta.html)

Copilot AI review requested due to automatic review settings July 28, 2025 16:00
@MrHinsh MrHinsh enabled auto-merge July 28, 2025 16:00
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request improves SEO for guide pages by updating canonical URL logic, meta tags for historical versions, and adding multilingual hreflang support. The changes ensure better discoverability and indexing of guide content across different versions and languages.

  • Changed canonical URLs to always point to section root for all guide versions (not just latest)
  • Updated robots meta tag for historical guide versions from "noindex, follow" to "index, follow"
  • Added hreflang links for multilingual support across all available language versions

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
module/layouts/_partials/functions/get-canonical-url.html Simplified canonical URL logic to point all guide versions to section root
module/layouts/_partials/components/seo/guide-version-meta.html Changed robots meta tag to allow indexing of historical guide versions
module/layouts/_partials/components/seo/guide-version-links.html Added hreflang links for multilingual guide version support
Comments suppressed due to low confidence (1)

module/layouts/_partials/functions/get-canonical-url.html:21

  • There is an extra closing {{- end -}} statement on line 21. The removal of the conditional logic around lines 13-15 should have also removed the corresponding closing {{- end -}} statement that was paired with the {{- if eq $currentVersion $latestVersion -}} condition.
{{- end -}}

@MrHinsh MrHinsh added this pull request to the merge queue Jul 28, 2025
@MrHinsh MrHinsh removed this pull request from the merge queue due to a manual request Jul 28, 2025
@MrHinsh MrHinsh enabled auto-merge July 28, 2025 16:01
@MrHinsh MrHinsh disabled auto-merge July 28, 2025 16:02
@MrHinsh MrHinsh enabled auto-merge July 28, 2025 16:03
@MrHinsh MrHinsh added this pull request to the merge queue Jul 28, 2025
Merged via the queue into main with commit cc73fa3 Jul 28, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants