Skip to content

Commit

Permalink
fix bug with trailing slash when url points to complete file (tiff)
Browse files Browse the repository at this point in the history
  • Loading branch information
toloudis committed Sep 27, 2023
1 parent 7863af7 commit e5a6215
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion public/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e5a6215

Please sign in to comment.