Skip to content

chore: canonicalize blog posts with relevant organization tag - #2740

Open
muhammad-ali-pk wants to merge 1 commit into
mainfrom
WD-36486
Open

chore: canonicalize blog posts with relevant organization tag#2740
muhammad-ali-pk wants to merge 1 commit into
mainfrom
WD-36486

Conversation

@muhammad-ali-pk

@muhammad-ali-pk muhammad-ali-pk commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Done

  • Specify authoritative domain for all canonical-announcements grouped blog posts to be canonical.om, and for all else to be ubuntu.com

QA

  • Check out this pull request and run the project using dotrun
  • Visit the application on http://localhost:8001/blog
  • Open any blog article
  • Open dev tools and search for ld+json
  • Identify the one for type Article
  • Verify the publisher and other metadata are correct, as per the requirement mentioned in the DONE section

Issue / Card

Fixes WD-36486

Screenshots

[if relevant, include a screenshot]

@webteam-app

Copy link
Copy Markdown

@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.64%. Comparing base (1597372) to head (7392e2a).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2740   +/-   ##
=======================================
  Coverage   74.64%   74.64%           
=======================================
  Files          19       19           
  Lines        2374     2374           
=======================================
  Hits         1772     1772           
  Misses        602      602           
Flag Coverage Δ
python 74.64% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@muhammad-ali-pk
muhammad-ali-pk marked this pull request as ready for review July 9, 2026 12:17
Copilot AI review requested due to automatic review settings July 9, 2026 12:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the blog article template to make canonical.com the authoritative domain for canonical URLs and structured data, improving how crawlers interpret Canonical-hosted blog content.

Changes:

  • Update the blog article canonical URL logic to default to https://canonical.com/blog/<slug> (with existing tag-based exceptions).
  • Use the canonical URL (instead of request.url) for the Article JSON-LD "url" field.
  • Update the JSON-LD publisher name from “Ubuntu” to “Canonical”.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread templates/blog/article.html Outdated
@muhammad-ali-pk muhammad-ali-pk changed the title chore: set canonical.com as authoritative domain for blog content, for crawlers chore: canonicalize blog posts with relevant organization tag Aug 17, 2026

@Skazitron Skazitron left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants