Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

eric-burel
Copy link
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.

Copy link

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
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
12 of 14 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