Skip to content

fix(svgo): remove prefixIds plugin from SVGO configuration#186

Open
rsanchez-beapi wants to merge 1 commit into
mainfrom
fix/svgo-config
Open

fix(svgo): remove prefixIds plugin from SVGO configuration#186
rsanchez-beapi wants to merge 1 commit into
mainfrom
fix/svgo-config

Conversation

@rsanchez-beapi

@rsanchez-beapi rsanchez-beapi commented Jun 26, 2026

Copy link
Copy Markdown

The prefixIds plugin renames SVG symbol IDs during optimization, which breaks icon rendering: PHP references sprites via fixed hashes (e.g. #icon-facebook) in , and prefixed IDs no longer match those references.

Removing the plugin restores stable symbol IDs and ensures icons display correctly in the sprite workflow.


Note

Low Risk
Build-time SVG config only; restores prior ID behavior and does not touch runtime auth or data paths.

Overview
Removes the prefixIds SVGO plugin from config/svgo.config.js so optimized SVG sprites keep stable symbol IDs.

prefixIds was rewriting IDs during build, which broke <use href="#icon-…"> references in PHP that expect fixed hashes (e.g. #icon-facebook). Icons should render correctly again in the sprite workflow.

Reviewed by Cursor Bugbot for commit 1fbf1ac. Bugbot is set up for automated code reviews on this repo. Configure here.

The prefixIds plugin renames SVG symbol IDs during optimization, which
breaks icon rendering: PHP references sprites via fixed hashes
(e.g. #icon-facebook) in <use href="...">, and prefixed IDs no longer
match those references.

Removing the plugin restores stable symbol IDs and ensures icons display
correctly in the sprite workflow.
@rsanchez-beapi rsanchez-beapi requested a review from cedric07 June 26, 2026 09:17
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