Developer forum

Forum » Swift » Swift Email Image not including host in img src

Swift Email Image not including host in img src

Pedro Meias
Pedro Meias
Reply

Hi,

Reporting a possible bug on swift we found.

The template for images on emails - Templates/Designs/Swift/Swift_Email/Components/Image.cshtml is not including the host name in the image element. Here is the fix we applied.

 string image = $"{Dynamicweb.Context.Current.Request.Url.Scheme}://{Dynamicweb.Context.Current.Request.Url.Host}/Admin/Public/GetImage.ashx?width={imageWidth}";
Add comment38Plus  
 

 


Replies

 
Stefan Winther Dynamicweb Employee
Stefan Winther
Reply
This post has been marked as an answer

Hi Pedro,

Thank you for reporting.

We will have our QA take a look at it, and create a bug

Good day

/Stefan

Votes for this answer: 1
 
Merethe Vrå Andersen Dynamicweb Employee
Merethe Vrå Andersen
Reply

Hi,

I have created bug #14128

BR,

Merethe Vrå Andersen,
QA

 

 
Pedro Meias
Pedro Meias
Reply

Thank you Stefan and Merethe.

 

You must be logged in to post in the forum