Hi
DW 9.16.4, Swift v1.24.0
We have a product on witch we added a youtube video as follows
When visiting the product details page - this is how it looks like
When checking the HTML it seems the thumbnail image has the url of the video
When checking the template Templates/Designs/Swift/Paragraph/Swift_ProductDetailsImage.cshtml
Lines 433-435
433:string imagePath = Dynamicweb.Context.Current.Server.UrlEncode(assetValue); 434:imagePath = assetValue.IndexOf("youtu.be", StringComparison.OrdinalIgnoreCase) >= 0 || assetValue.IndexOf("youtube", StringComparison.OrdinalIgnoreCase) >= 0 ? "https://img.youtube.com/vi/" + assetValue.Substring(assetValue.LastIndexOf('/') + 1) + "/mqdefault.jpg" : imagePath; 435:string imagePathThumb = assetValue.StartsWith("/Files/", StringComparison.OrdinalIgnoreCase) ? imagePath.IndexOf("youtube", StringComparison.OrdinalIgnoreCase) < 0 && imagePath.IndexOf(".mp4", StringComparison.OrdinalIgnoreCase) < 0 ? $"/Admin/Public/GetImage.ashx?image={imagePath}&width=180&format=webp" : imagePath : assetValue;
Values for this specific product after line 435
assetValue - https://www.youtube.com/watch?v=JxS5E-kZc2s
imagePath - https://img.youtube.com/vi/watch?v=JxS5E-kZc2s/mqdefault.jpg
imagePathThumb - https://www.youtube.com/watch?v=JxS5E-kZc2s
It seems line 435 is placing assetValue instead of imagePath on variable imagePathThumb
Also, the right path to get the image should be https://img.youtube.com/vi/JxS5E-kZc2s/mqdefault.jpg
Thank you.