preload_tag, rel="preload" attribute added twice
The preload_tag is adding the rel="preload" attribute twice.
For example, here's the tag I'm using:
{{ 'Font-Name.woff2' | asset_url | preload_tag: as: 'font' }}
...and here's the outout:
<link href="Font-Name.woff2" rel="preload" as="font" rel="preload">
Bump
I'm having this same issue too.
I'm not sure if this will affect the priority of this ticket but this is reported as an error in the W3 HTML validator
Still seeing this.
bump
It also shows up in the liquid output example in the documentation: https://shopify.dev/docs/api/liquid/filters/preload_tag
I've just come across this myself, how was this raised back in 2022 and hasn't been sorted?