FriendsOfShopware / FroshPlatformThumbnailProcessor

This shopware6 plugin allows you to use variable thumbnails - on the fly.
MIT License
20 stars 13 forks source link

URL s wrong #105

Closed marcmanusch closed 1 year ago

marcmanusch commented 1 year ago

PHP Version

8.2

Shopware Version

6.5.3.3

Actual behaviour

https://www.xxxxxx.de**//**cdn-cgi/image/width=200,height=200,quality=85,format=auto/media/00/b1/27/1692008038/froshthumbnailprocessortestimage.jpg

The link is created with two slash.

Bildschirmfoto 2023-08-14 um 12 15 58

Expected behaviour

By removing one slash, the link is correct.

Steps to Reproduce?

install...

marcmanusch commented 1 year ago

The pattern is wrong: https://github.com/FriendsOfShopware/FroshPlatformThumbnailProcessor/discussions/40

FROM: {mediaUrl}/cdn-cgi/image/width={width},height={width},quality=85,format=auto/{mediaPath} TO {mediaUrl}cdn-cgi/image/width={width},height={width},quality=85,format=auto/{mediaPath}

Solves the problem.