Skip to content

Fix crossposting canonical URL for non-blog sections#3854

Open
vincanger wants to merge 1 commit intoreleasefrom
fix-crossposting-skill
Open

Fix crossposting canonical URL for non-blog sections#3854
vincanger wants to merge 1 commit intoreleasefrom
fix-crossposting-skill

Conversation

@vincanger
Copy link
Copy Markdown
Contributor

Summary

  • Fixes buildCanonicalUrl in the crossposting script to derive the URL section (blog, resources, etc.) from the file's parent directory instead of hardcoding /blog/
  • Articles in resources/ now correctly get wasp.sh/resources/... canonical URLs

Test plan

  • Dry run on resources/2026-02-24-best-frameworks-web-dev-2026.mdx produces https://wasp.sh/resources/2026/02/24/best-frameworks-web-dev-2026

@vincanger vincanger requested a review from a team as a code owner March 2, 2026 21:59
@vincanger vincanger requested review from FranjoMindek and removed request for a team March 2, 2026 21:59
@vincanger vincanger temporarily deployed to fly-deploy-test March 2, 2026 21:59 — with GitHub Actions Inactive
@vincanger vincanger temporarily deployed to railway-deploy-test March 2, 2026 21:59 — with GitHub Actions Inactive
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying wasp-docs-on-main with  Cloudflare Pages  Cloudflare Pages

Latest commit: 328ad15
Status: ✅  Deploy successful!
Preview URL: https://bfb6fce2.wasp-docs-on-main.pages.dev
Branch Preview URL: https://fix-crossposting-skill.wasp-docs-on-main.pages.dev

View logs

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Mar 2, 2026

Open in StackBlitz

@wasp.sh/wasp-cli

npx https://pkg.pr.new/@wasp.sh/wasp-cli@3854

@wasp.sh/wasp-cli-darwin-arm64-unknown

npx https://pkg.pr.new/@wasp.sh/wasp-cli-darwin-arm64-unknown@3854

@wasp.sh/wasp-cli-darwin-x64-unknown

npx https://pkg.pr.new/@wasp.sh/wasp-cli-darwin-x64-unknown@3854

@wasp.sh/wasp-cli-linux-x64-glibc

npx https://pkg.pr.new/@wasp.sh/wasp-cli-linux-x64-glibc@3854

@wasp.sh/wasp-cli-linux-x64-musl

npx https://pkg.pr.new/@wasp.sh/wasp-cli-linux-x64-musl@3854

commit: 68f60bd

Copy link
Copy Markdown
Contributor

@FranjoMindek FranjoMindek left a comment

Choose a reason for hiding this comment

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

A bit flaky that we depend on file structure but not that really important now.

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