From 36f8eeb2725251033d0cd584661b76f881cf237f Mon Sep 17 00:00:00 2001 From: Wilfred Asomani Date: Wed, 23 Aug 2023 20:05:44 +0000 Subject: [PATCH] web/satellite: fix broken preview link This change fixes an issue where the gallery view will use wrong links display object previews because they were encoded multiple times. Issue: https://github.com/storj/customer-issues/issues/961 Change-Id: I498878e9beb927b812e40d4c7e5ae812cfa3554c --- .../src/components/browser/galleryView/GalleryView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/satellite/src/components/browser/galleryView/GalleryView.vue b/web/satellite/src/components/browser/galleryView/GalleryView.vue index 39629818f..0399fe828 100644 --- a/web/satellite/src/components/browser/galleryView/GalleryView.vue +++ b/web/satellite/src/components/browser/galleryView/GalleryView.vue @@ -258,7 +258,7 @@ const placeHolderDisplayable = computed((): boolean => { * Returns current path without object key. */ const currentPath = computed((): string => { - return route.path.replace(RouteConfig.Buckets.with(RouteConfig.UploadFile).path, ''); + return decodeURIComponent(route.path.replace(RouteConfig.Buckets.with(RouteConfig.UploadFile).path, '')); }); /**