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
This commit is contained in:
Wilfred Asomani 2023-08-23 20:05:44 +00:00 committed by Storj Robot
parent 84e75d5994
commit 36f8eeb272

View File

@ -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, ''));
});
/**