# smarty link file full path in E-mail temlpates funktioniert nicht

**URL:** <https://forum.shopware.com/t/smarty-link-file-full-path-in-e-mail-temlpates-funktioniert-nicht/38475>\
**Category:** Themes & Design\
**Created:** [23. Juli 2016 um 09:15 UTC](https://forum.shopware.com/t/smarty-link-file-full-path-in-e-mail-temlpates-funktioniert-nicht/38475 "2016-07-23T09:15:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![haldonclark](https://avatars.discourse-cdn.com/v4/letter/h/ecae2f/32.png) [@haldonclark](https://forum.shopware.com/u/haldonclark)\
**Post date:** [23. Juli 2016 um 09:15 UTC](https://forum.shopware.com/t/smarty-link-file-full-path-in-e-mail-temlpates-funktioniert-nicht/38475/1 "2016-07-23T09:15:17Z")

</div>

Liebe Community,

seltsamer Weise funktioniert es und manchmal funktioniert es nicht, sprich der gleiche Link wird in einer E-mail korrekt aufgebaut, in der nächsten fehlt ein Teil.

Meiner Vorstellung nach sollte {link file=‘frontend/\_public/src/img/emails/geschenke.jpg’ fullPath} einen Link auf die entsprechende Datei im aktuell genutzten Theme verweisen. Manchmal wird der Link korrekt erstellt, machman fehlt der folgende Teil: “[http://www.meinshop.de/themes/Frontend/Local/](http://www.meinshop.de/themes/Frontend/Local/)”, sodass dann in der E-mail das Bild nicht angezeigt wird.

Hat jemand eine Idee?

Gruß

Ingo

```
 &nbsp;
```

---

<div class="post-metadata">

**Author:** ![haldonclark](https://avatars.discourse-cdn.com/v4/letter/h/ecae2f/32.png) [@haldonclark](https://forum.shopware.com/u/haldonclark)\
**Post date:** [17. November 2018 um 11:13 UTC](https://forum.shopware.com/t/smarty-link-file-full-path-in-e-mail-temlpates-funktioniert-nicht/38475/2 "2018-11-17T11:13:25Z")

</div>

Das Problem tritt immer wieder bei mir auf. Hat jemand einen Hinweis, wie das zustanden kommen könnte?

---

<div class="post-metadata">

**Author:** ![haldonclark](https://avatars.discourse-cdn.com/v4/letter/h/ecae2f/32.png) [@haldonclark](https://forum.shopware.com/u/haldonclark)\
**Post date:** [8. Dezember 2018 um 18:20 UTC](https://forum.shopware.com/t/smarty-link-file-full-path-in-e-mail-temlpates-funktioniert-nicht/38475/3 "2018-12-08T18:20:22Z")

</div>

Nachtrag: wenn der Fehler auftritt, fehlt nur die Domain, alles andere (z.B. /themes/Frontend/Local/frontend/\_public/src/img/emails/geschenke.jpg) ist vorhanden. Die Datei ist dort auch korrekt abgelegt. Manchmal funktioniert es eben und dann auch wieder nicht.

Im HTML steht dann:&nbsp; ![Logo]()

Biete € 40,- (gegen Rechnung) für den richtigen Hinweis.

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [8. Dezember 2018 um 18:29 UTC](https://forum.shopware.com/t/smarty-link-file-full-path-in-e-mail-temlpates-funktioniert-nicht/38475/4 "2018-12-08T18:29:35Z")

</div>

Das ist häufig ein CLI Problem, da dort der Context fehlt. Kommt aber auch häufig auf den Cronjob an.

---

<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:** [8. Dezember 2018 um 18:30 UTC](https://forum.shopware.com/t/smarty-link-file-full-path-in-e-mail-temlpates-funktioniert-nicht/38475/5 "2018-12-08T18:30:11Z")

</div>

Versuch das mal aus&nbsp;[Fix smarty flink function when rendered in cli context by jkrzefski · Pull Request #1777 · shopware/shopware · GitHub](https://github.com/shopware/shopware/pull/1777/files)

---

<div class="post-metadata">

**Author:** ![haldonclark](https://avatars.discourse-cdn.com/v4/letter/h/ecae2f/32.png) [@haldonclark](https://forum.shopware.com/u/haldonclark)\
**Post date:** [8. Dezember 2018 um 20:16 UTC](https://forum.shopware.com/t/smarty-link-file-full-path-in-e-mail-temlpates-funktioniert-nicht/38475/6 "2018-12-08T20:16:03Z")

</div>

Es sieht so aus, als würde das funktionieren. Zumindest ist nichts kaputt. Ist dieser Code bereits offizieller Code von Shopware? Wenn nein, warum nicht?
