From e5a62156914841200c08dc50b13762ee0b2efe8b Mon Sep 17 00:00:00 2001 From: Daniel Toloudis Date: Wed, 27 Sep 2023 12:34:34 -0700 Subject: [PATCH] fix bug with trailing slash when url points to complete file (tiff) --- public/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/index.tsx b/public/index.tsx index bff75ff2..ad9054df 100644 --- a/public/index.tsx +++ b/public/index.tsx @@ -173,7 +173,12 @@ if (params) { const baseUrl = decodedurl.slice(0, -lastpart.length); // any difference for zarr or tiff or json? decodedurl = baseUrl; - decodedimage = lastpart+"/"+decodedimage; + if (decodedimage !== "") { + decodedimage = lastpart+"/"+decodedimage; + } + else { + decodedimage = lastpart; + } args.cellid = 1; args.baseurl = decodedurl;