# Shopware url füllen vermeiden

**URL:** <https://forum.shopware.com/t/shopware-url-fullen-vermeiden/41113>\
**Category:** Programmierung\
**Created:** [5. November 2016 um 21:23 UTC](https://forum.shopware.com/t/shopware-url-fullen-vermeiden/41113 "2016-11-05T21:23:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)\
**Post date:** [5. November 2016 um 21:23 UTC](https://forum.shopware.com/t/shopware-url-fullen-vermeiden/41113/1 "2016-11-05T21:23:16Z")

</div>

Hallo,

ich arbeite gerade an einem Plugin welches das Shopware Listing via Mustache&nbsp;rendert im Javascript. Jedoch mobbt mich Shopware mit seinen Urls.

Wenn ich ein Image Tag habe mit den src="{{image}}" fügt Shopware vor meiner Variable die Shop Url ein, dies macht jede Url von mir kaputt, da die Urls dann doppelt sind. ([http://sw52.localhost/http://sw52.localhost/media/image/b7/1f/0b/Kwon-Tasche-Coach-schwarz503e242e4ab03](http://sw52.localhost/http://sw52.localhost/media/image/b7/1f/0b/Kwon-Tasche-Coach-schwarz503e242e4ab03))

Jemand eine Idee was ich dagegen tun kann?

mfg,

Shyim

---

<div class="post-metadata">

**Author:** ![Rednaxela](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@Rednaxela](https://forum.shopware.com/u/Rednaxela)\
**Post date:** [6. November 2016 um 05:33 UTC](https://forum.shopware.com/t/shopware-url-fullen-vermeiden/41113/2 "2016-11-06T05:33:57Z")

</div>

du scheinst ja deiner variablen den absoluten image-pfad zuzuweisen, sollte ja dann funktionieren mit dem relativen. ich weiss halt nicht, ob du den pfad in deinem plugin selbst erstellst. ansonsten schneid halt die shop url aus dem image pfad raus. weiss nicht, ob das sehr elegant ist, sollte jedenfalls funktionieren

---

<div class="post-metadata">

**Author:** ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)\
**Post date:** [6. November 2016 um 09:02 UTC](https://forum.shopware.com/t/shopware-url-fullen-vermeiden/41113/3 "2016-11-06T09:02:24Z")

</div>

Man könnte es machen jedoch tritt das Problem trotzdem auf wenn CDNs im Einsatz sind…
