Skip to content

fix(useFavicon): preserve touch and mask icons - #2733

Open
Aminark wants to merge 2 commits into
streamich:masterfrom
Aminark:fix/favicon-link-relation
Open

Aminark wants to merge 2 commits into
streamich:masterfrom
Aminark:fix/favicon-link-relation

Conversation

@Aminark

@Aminark Aminark commented Oct 25, 2026

Copy link
Copy Markdown

link[rel*='icon'] also matches apple-touch-icon and mask-icon. If either comes first, updating the favicon overwrites that link and leaves the actual favicon unchanged.

Match the icon token instead. This still finds both icon and shortcut icon. Four regression cases cover creating and updating a favicon alongside the other icon links.

  • Read the contributing guide and reviewed the diff.
  • Tests pass: 76 suites / 496 tests; the four new cases fail before the fix.
  • Changed hook has 100% test coverage.
  • Lint and types pass (97 existing lint warnings).

Bug fix; no public API or usage changes.

This branch has not been deployed

No deployments
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