Skip to content

updated BaseHead with path-to-URL mapping only for the BrowserPod blogs#422

Merged
GabrielaReyna merged 3 commits into
mainfrom
browserpod/update-blog-canonicals
Jun 12, 2026
Merged

updated BaseHead with path-to-URL mapping only for the BrowserPod blogs#422
GabrielaReyna merged 3 commits into
mainfrom
browserpod/update-blog-canonicals

Conversation

@Liamoscarmccaffrey

Copy link
Copy Markdown
Contributor

Ensuring blogs canonical point to the browserpod.io versions (i.e., in leaningtech.com repo).

…gs that also exist on the leaningtech.com repo.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 8, 2026

Copy link
Copy Markdown

Deploying labs-browserpod-previews with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6f309ae
Status: ✅  Deploy successful!
Preview URL: https://e712c7d3.labs-browserpod-previews.pages.dev
Branch Preview URL: https://browserpod-update-blog-canon.labs-browserpod-previews.pages.dev

View logs

@alexp-sssup

Copy link
Copy Markdown
Member

I've checked this and this seems ok, but the maintainability is very poor. A better approach would be to do this for any post tagged browserpod. This said, the whole duplicated content is a maintenance nightmare.

@alexp-sssup

Copy link
Copy Markdown
Member

@GabrielaReyna I'd like your opinion before merging

@GabrielaReyna GabrielaReyna 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.

Hey! Found two bugs in the BrowserPod canonicals PR during testing:

.html suffix not stripped — the preview deployment appends .html to pathnames (e.g. /blog/browserpod-deep-dive.html), so the canonical lookup was falling through to the labs fallback instead of pointing at browserpod.io. Fixed by updating the normalisation regex to strip .html as well as trailing slashes.
Wrong map keys for 1.0 and 2.0 posts — the lookup table used /blog/browserpod-1.0 and /blog/browserpod-2.0 as keys, but the actual paths on the site are /blog/browserpod-10 and /blog/browserpod-20 (no dot). Those entries were never matching. Fixed by correcting the keys.
Both fixes are on the branch now.

@GabrielaReyna GabrielaReyna merged commit efad152 into main Jun 12, 2026
10 checks passed
@GabrielaReyna GabrielaReyna deleted the browserpod/update-blog-canonicals branch June 12, 2026 17:05
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.

3 participants