How do I get the relative url (global assets) to show up with netlify?

Do you have an idea why

{{with resources.Get .Site.Params.brand}}
<link rel=preload as=image href="{{.RelPermalink}}" type=image/webp>


{{with resources.Get .Site.Params.brand}}
<img alt="Logo du site" src="{{.RelPermalink}}" width={{.Width}} height={{.Height}}>

don’t match ?
Netlify makes this crazy cloudfront url instead. This url is valid but maybe the stupid browser doesn’t recognize as the same as in the link element ?

<img alt="Logo du site" src="" width="300" height="139">

and I get

The resource https://WEBSITE/Images/history/symboles_site/brand_symbol.webp was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate as value and it is preloaded intentionally.

I’m pretty sure it is the cause, damn netlify. I used to make it work, I don’t know know what to do now.

I’d suggest asking on Netlify forum, it’s likely post processing of Netlify.

true, true. I will do. Not much people had to contend with that specific preloading problem I suppose.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.