Skip to content

Don’t generate invalid meta tags in <head>#3496

Merged
delucis merged 6 commits into
mainfrom
stack/invalid-canonical
Nov 11, 2025
Merged

Don’t generate invalid meta tags in <head>#3496
delucis merged 6 commits into
mainfrom
stack/invalid-canonical

Conversation

@delucis

@delucis delucis commented Oct 22, 2025

Copy link
Copy Markdown
Member

This is a follow-up PR to #3420 which was merged into this intermediate branch to allow @erbierc to pick up work on adding tests.

Opening as a draft for now until we have those tests!

…3420)

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: trueberryless <99918022+trueberryless@users.noreply.github.com>
@changeset-bot

changeset-bot Bot commented Oct 22, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fb12d2b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@astrojs/starlight Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify

netlify Bot commented Oct 22, 2025

Copy link
Copy Markdown

Deploy Preview for astro-starlight ready!

Name Link
🔨 Latest commit fb12d2b
🔍 Latest deploy log https://app.netlify.com/projects/astro-starlight/deploys/6912483307837b00085bbfd2
😎 Deploy Preview https://deploy-preview-3496--astro-starlight.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@delucis delucis marked this pull request as draft October 22, 2025 20:36
@github-actions github-actions Bot added the 🌟 core Changes to Starlight’s main package label Oct 22, 2025
@astrobot-houston

astrobot-houston commented Oct 22, 2025

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
/index.html 7.28 KB (-0.19% 🔽)
/_astro/*.js 25.76 KB (0%)
/_astro/*.css 14.29 KB (0%)

…th missing href" solution (#3501)

Co-authored-by: Anders Kaseorg <andersk@mit.edu>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
@delucis delucis marked this pull request as ready for review November 10, 2025 12:09
@delucis delucis changed the title Don’t generate invalid <link rel="canonical"/> with missing href Don’t generate invalid meta tags in <head> Nov 10, 2025

@HiDeoo HiDeoo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Left a few minor comments, but otherwise this is looking really great.

Thanks to everyone involved, amazing job on fixing that issue 🙌

Comment thread packages/starlight/__tests__/head/head.test.ts Outdated
Comment thread packages/starlight/__tests__/head/head.test.ts Outdated
Comment thread packages/starlight/__tests__/test-utils.ts
Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com>
Comment thread packages/starlight/__tests__/test-utils.ts

@HiDeoo HiDeoo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the update, looks ready to me 🚀

@delucis delucis merged commit b78fda4 into main Nov 11, 2025
16 checks passed
@delucis delucis deleted the stack/invalid-canonical branch November 11, 2025 08:19
@astrobot-houston astrobot-houston mentioned this pull request Nov 11, 2025
gxxxr-111 pushed a commit to gxxxr-111/starlight that referenced this pull request Apr 9, 2026
Co-authored-by: Anders Kaseorg <andersk@mit.edu>
Co-authored-by: trueberryless <99918022+trueberryless@users.noreply.github.com>
Co-authored-by: nemu <58832428+erbierc@users.noreply.github.com>
Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🌟 core Changes to Starlight’s main package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants