Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat(astro): add sensible default canonical url#437

Merged
Nemikolh merged 1 commit into
stackblitz:mainstackblitz/tutorialkit:mainfrom
eric-burel:canonical-urleric-burel/tutorialkit:canonical-urlCopy head branch name to clipboard
Jan 27, 2025
Merged

feat(astro): add sensible default canonical url#437
Nemikolh merged 1 commit into
stackblitz:mainstackblitz/tutorialkit:mainfrom
eric-burel:canonical-urleric-burel/tutorialkit:canonical-urlCopy head branch name to clipboard

Conversation

@eric-burel
Copy link
Copy Markdown
Contributor

@eric-burel eric-burel commented Jan 27, 2025

I got deindexed by Google due to the lack of a proper canonical link, so here is a small update to set it up when the website has a configured absolute URL.

image

The PR just needs a double check because I was running the demo code which doesn't have an astro.config so no Astro.site.

Current palliative is to setup a custom HeadTags.

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@eric-burel eric-burel changed the title add sensible default canonical url feat(astro): add sensible default canonical url Jan 27, 2025
Copy link
Copy Markdown
Member

@Nemikolh Nemikolh left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for the fix 🎉

@Nemikolh Nemikolh merged commit 1a5ea33 into stackblitz:main Jan 27, 2025
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.