Shopify themes, liquid, logos, and UX
Hello,
Without my understanding why, I found myself full of 404s on my site (image, script, etc.)
I tried to find where the problem was coming from and found that the asset_url tag itself didn't seem to work, at least it didn't lead to my files. Here is an example :
In theme.liquid, I have this line:
{{ 'jquery.min.js' | asset_url | script_tag }}
When I display my theme, this is what I get:
<script src="//cdn.shopify.com/s/files/1/0097/4192/6485/t/27/assets/jquery.min.js?26017" type="text/javascript"></script>
Except that this leads, you will understand, to a 404.
I admit that I do not understand how this is possible and why all of a sudden it no longer works.
Is there a way to "regenerate" the asset_url, or something like that?
Thanks a lot.
Solved! Go to the solution
This is an accepted solution.
While I was doing my tests, some asset URLs started to change, without me doing anything. t/27 became t/10 and the files were accessible again. But not all. Mind-blowing.
After tearing my hair out for a few hours. I solved the problem in the following way:
Hope this helps someone.
Thank you Shopify 🤷♂️
This is an accepted solution.
While I was doing my tests, some asset URLs started to change, without me doing anything. t/27 became t/10 and the files were accessible again. But not all. Mind-blowing.
After tearing my hair out for a few hours. I solved the problem in the following way:
Hope this helps someone.
Thank you Shopify 🤷♂️
How can this be an accepted solution? This is a reproducible bug? One should not have to do these steps just to get an asset file to load properly.
Couldn't agree more. Is this a joke?
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024