Closed elwesterno closed 2 years ago
Can you provide a bit more information, as I'm not seeing this. What's your path/url settings? What font files are you using (svgs, sprites, fonts, etc)?
It happens with all types of files. I'll show it on this example:
Let's say i have "social_instagram_wh.svg" file in my icons folder.
My settings:
'iconSetsPath' => CRAFT_BASE_PATH . '/public/assets/icons/',
'iconSetsUrl' => '/assets/icons/',
Then when i try to select this icon in admin panel the img tag looks like this:
<img src="assets/icons%5C%5Csocial_instagram_wh.svg" width="20" height="20">
I guess it's adding backslash and converting it into %5C%5C.
Same happens when i try to render it in HTML of the website by myself.
I'll double check this, seems that you're also on Windows?
Yes, Windows 10. Paths are probably ok because turning "%5C%5C" to "/" in DevTools resolve the issue.
Also, if this could help, getIconName() method returns correct filename.
Fixed in 2.0.0
Description
When using local files from icons directory they are all rendered with %5C%5C before filename. Because of the bad path, they're not rendered properly in admin panel or website.
Steps to reproduce
Additional info