Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(unhead): dedupe alternate links by hreflang/type without href#656

Merged
harlan-zw merged 1 commit into
mainfrom
fix/alternate-link-dedupe
Feb 8, 2026
Merged

fix(unhead): dedupe alternate links by hreflang/type without href#656
harlan-zw merged 1 commit into
mainfrom
fix/alternate-link-dedupe

Conversation

@harlan-zw

Copy link
Copy Markdown
Collaborator

πŸ”— Linked issue

Related to #655

❓ Type of change

  • πŸ“– Documentation
  • 🐞 Bug fix
  • πŸ‘Œ Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking change

πŸ“š Description

The previous alternate link dedupe key included href, which meant same-hreflang entries with different URLs were treated as distinct tags instead of deduping. This removes href from the key so <link rel="alternate"> dedupes by hreflang or type only (last push wins). Bare alternates without either property now fall through to the generic deduping logic instead of being grouped under x-default.

Adds edge case tests for RSS/Atom feed coexistence, same-type feed deduping, and bare alternate fallthrough.

…rop href from key

Removes `href` from the alternate link dedupe key so that same-hreflang
entries correctly dedupe (last push wins). Bare alternates without
hreflang or type fall through to generic deduping logic.
@github-actions

github-actions Bot commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

Bundle Size Analysis

Bundle Size Gzipped
Client (Minimal) 11.3 kB 4.7 kB
Server (Minimal) 10.2 kB 4.2 kB
Vue Client (Minimal) 12.2 kB 5.1 kB
Vue Server (Minimal) 11 kB 4.6 kB

@harlan-zw harlan-zw merged commit 86175eb into main Feb 8, 2026
5 checks passed
@harlan-zw harlan-zw mentioned this pull request Apr 4, 2026
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.

1 participant