theme-check icon indicating copy to clipboard operation
theme-check copied to clipboard

preload_tag not working with font_url filter

Open adictonator opened this issue 2 years ago • 0 comments

Describe the bug Using font_url in the preload_tag filter to preload font assets throws an error in theme editor.

Expected

The preload_tag filter should work with the font_url and not just asset_url.

Actual

Upon converting the <link> tag with the preload_tag filter, the Liquid error starts to show up in the theme editor.

Stack trace This is the error you see in the theme editor at the top.

Liquid error (layout/theme line 24): Input must be a theme or shop asset URL

Debugging information

  • OS: Windows and Mac
  • Version: 1.11.0

Additional context

image

adictonator avatar Dec 19 '23 17:12 adictonator