diff --git a/Swift/Files/Templates/Designs/Swift/Components/VideoPlayer.cshtml b/Swift/Files/Templates/Designs/Swift/Components/VideoPlayer.cshtml index 0a40b4641..065f898bf 100644 --- a/Swift/Files/Templates/Designs/Swift/Components/VideoPlayer.cshtml +++ b/Swift/Files/Templates/Designs/Swift/Components/VideoPlayer.cshtml @@ -116,7 +116,7 @@ { string autoPlayAttributes = (autoPlay && !openInModal) ? "loop autoplay muted playsinline" : ""; string videoType = Path.GetExtension(link).ToLower(); - string videoPathEncoded = System.Uri.EscapeDataString(link); + string videoPathEncoded = System.Uri.EscapeUriString(link); diff --git a/Swift/Files/Templates/Designs/Swift/Paragraph/Swift_ProductDetailsGallery.cshtml b/Swift/Files/Templates/Designs/Swift/Paragraph/Swift_ProductDetailsGallery.cshtml index 1a8a550ba..d6ff67f90 100644 --- a/Swift/Files/Templates/Designs/Swift/Paragraph/Swift_ProductDetailsGallery.cshtml +++ b/Swift/Files/Templates/Designs/Swift/Paragraph/Swift_ProductDetailsGallery.cshtml @@ -259,7 +259,7 @@ string iconPath = "/Files/Templates/Designs/Swift/Assets/icons/"; string type = GetVideoType(asset.Value); - string videoScreendumpPath = type == "selfhosted" ? System.Uri.EscapeDataString(asset.Value) : string.Empty; + string videoScreendumpPath = type == "selfhosted" ? System.Uri.EscapeUriString(asset.Value) : string.Empty; videoScreendumpPath = type == "youtube" ? GetYoutubeScreenDump(asset.Value, "maxresdefault") : videoScreendumpPath; string videoJsClass = type == "vimeo" ? "js-vimeo-video-thumbnail" : string.Empty; @@ -424,7 +424,7 @@ string type = GetVideoType(asset.Value); - string videoScreendumpPath = type == "selfhosted" ? System.Uri.EscapeDataString(asset.Value) : string.Empty; + string videoScreendumpPath = type == "selfhosted" ? System.Uri.EscapeUriString(asset.Value) : string.Empty; videoScreendumpPath = type == "youtube" ? GetYoutubeScreenDump(asset.Value, "maxresdefault") : videoScreendumpPath; string videoJsClass = type == "vimeo" ? "js-vimeo-video-thumbnail" : ""; @@ -524,7 +524,7 @@ string type = GetVideoType(asset.Value); string videoScreendumpPath = type == "youtube" ? GetYoutubeScreenDump(asset.Value, "maxresdefault") : string.Empty; - videoScreendumpPath = type == "selfhosted" ? System.Uri.EscapeDataString(asset.Value) : videoScreendumpPath; + videoScreendumpPath = type == "selfhosted" ? System.Uri.EscapeUriString(asset.Value) : videoScreendumpPath; string videoJsClass = type == "vimeo" ? "js-vimeo-video-thumbnail" : string.Empty; string productName = product.Name; diff --git a/Swift/Files/Templates/Designs/Swift/Paragraph/Swift_ProductDetailsImage.cshtml b/Swift/Files/Templates/Designs/Swift/Paragraph/Swift_ProductDetailsImage.cshtml index e429a4911..6a22e0726 100644 --- a/Swift/Files/Templates/Designs/Swift/Paragraph/Swift_ProductDetailsImage.cshtml +++ b/Swift/Files/Templates/Designs/Swift/Paragraph/Swift_ProductDetailsImage.cshtml @@ -273,7 +273,7 @@ string type = GetVideoType(asset.Value); string videoScreendumpPath = type == "youtube" ? GetYoutubeScreenDump(asset.Value, "maxresdefault") : string.Empty; - videoScreendumpPath = type == "selfhosted" ? System.Uri.EscapeDataString(asset.Value) : videoScreendumpPath; + videoScreendumpPath = type == "selfhosted" ? System.Uri.EscapeUriString(asset.Value) : videoScreendumpPath; string videoJsClass = type == "vimeo" ? "js-vimeo-video-thumbnail" : ""; @@ -410,7 +410,7 @@ string videoScreendumpPath = type == "youtube" ? GetYoutubeScreenDump(asset.Value, "mqdefault") : ""; videoScreendumpPath = type == "vimeo" ? string.Empty : videoScreendumpPath; - videoScreendumpPath = type == "selfhosted" ? System.Uri.EscapeDataString(asset.Value) : videoScreendumpPath; + videoScreendumpPath = type == "selfhosted" ? System.Uri.EscapeUriString(asset.Value) : videoScreendumpPath; string videoJsClass = type == "vimeo" ? "js-vimeo-video-thumbnail" : string.Empty;