[Skip to main content](#vessel-content)

#   Getting the correct link for images in emails

##

- **[Udo](/forum/user/29928-udo "View Udo's Profile")**
- [![Udo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29928-udo "View Udo's Profile") Topic Author
- [ Offline](/forum/user/29928-udo)

Less More

- Posts: 220
- Thank you received: 8
-
-
-

4 years 5 months ago [\#342001](#342001) by [Udo](/forum/user/29928-udo "View Udo's Profile")  *[Getting the correct link for images in emails](/forum/4-how-to/904477-getting-the-correct-link-for-images-in-emails#342001 "-- HikaShop version -- : 4.5.0 -- Joomla version -- : 3.10.6 -- PHP version -- : 7.4.28  Hi,  I'm changing the images for headers and footers in my emails to customers.  And I'm confused about the correct way of linking to these images Should {VAR:LIVE&#95;SITE} be followed by a slash? Or not?  In the email order status notification you use links like {VAR:LIVE&#95;SITE}/media/com&#95;hikashop/images/icons/icon-48-order.png So I added {VAR:LIVE&#95;SITE}/media/com&#95;hikashop/images/mail/myheader.png With a slash after {VAR:LIVE&#95;SITE}  But in the email templates you use {VAR:LIVE&#95;SITE}media/com&#95;hikashop/images/mail/header.png Without a slash after {VAR:LIVE&#95;SITE} That makes me think that {VAR:LIVE&#95;SITE}media/com&#95;hikashop/images/mail/myheader.png is the correct link to add to the order status notification email.  Please advise.  Udo")* was created by *[Udo](/forum/user/29928-udo "View Udo's Profile")*

-- HikaShop version -- : 4.5.0
-- Joomla version -- : 3.10.6
-- PHP version -- : 7.4.28

Hi,

I'm changing the images for headers and footers in my emails to customers.

And I'm confused about the correct way of linking to these images
Should {VAR:LIVE_SITE} be followed by a slash? Or not?

In the email order status notification you use links like {VAR:LIVE_SITE}/media/com_hikashop/images/icons/icon-48-order.png
So I added {VAR:LIVE_SITE}/media/com_hikashop/images/mail/myheader.png
With a slash after {VAR:LIVE_SITE}

But in the email templates you use {VAR:LIVE_SITE}media/com_hikashop/images/mail/header.png
Without a slash after {VAR:LIVE_SITE}
That makes me think that {VAR:LIVE_SITE}media/com_hikashop/images/mail/myheader.png is the correct link to add to the order status notification email.

Please advise.

Udo

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkwNDQ3Ny1nZXR0aW5nLXRoZS1jb3JyZWN0LWxpbmstZm9yLWltYWdlcy1pbi1lbWFpbHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14293
-
-

4 years 5 months ago [\#342002](#342002) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Getting the correct link for images in emails](/forum/4-how-to/904477-getting-the-correct-link-for-images-in-emails#342002 "-- HikaShop version -- : 4.5.0 -- Joomla version -- : 3.10.6 -- PHP version -- : 7.4.28  Hi,  I'm changing the images for headers and footers in my emails to customers.  And I'm confused about the correct way of linking to these images Should {VAR:LIVE&#95;SITE} be followed by a slash? Or not?  In the email order status notification you use links like {VAR:LIVE&#95;SITE}/media/com&#95;hikashop/images/icons/icon-48-order.png So I added {VAR:LIVE&#95;SITE}/media/com&#95;hikashop/images/mail/myheader.png With a slash after {VAR:LIVE&#95;SITE}  But in the email templates you use {VAR:LIVE&#95;SITE}media/com&#95;hikashop/images/mail/header.png Without a slash after {VAR:LIVE&#95;SITE} That makes me think that {VAR:LIVE&#95;SITE}media/com&#95;hikashop/images/mail/myheader.png is the correct link to add to the order status notification email.  Please advise.  Udo")*

Hi,

Indeed {VAR:LIVE_SITE} already has a trailing / so it should be without like {VAR:LIVE_SITE}media/com_hikashop/images/mail/header.png
Note that browsers and email clients are quite nice with us as the URLs will still work even with extra /
So for a browser [ www.hikashop.com/media/com\_hikashop/images/mail/header.png](https://www.hikashop.com/media/com_hikashop/images/mail/header.png) or [ www.hikashop.com//media/com\_hikashop/images/mail/header.png](https://www.hikashop.com//media/com_hikashop/images/mail/header.png) will be the same.

Thanks for your feedback. We'll remove the useless / in the emails in the next version of HikaShop.

The following user(s) said Thank You: [Udo](/forum/user/29928-udo "View Udo's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkwNDQ3Ny1nZXR0aW5nLXRoZS1jb3JyZWN0LWxpbmstZm9yLWltYWdlcy1pbi1lbWFpbHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.050 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
