Get image asset relative url
Have a look at the settings of your asset's volume:
Go to: Settings &gt; Assets &gt; [Your Volume Name here]
Check the field &quot;Base URL&quot;. If it starts with the alias @web, remove it.
E.g. &quot;@web/images&quot; -&gt; &quot;/images&quot;.
Now check the URL of your image again.