Skip to content

Commit

Permalink
Merge pull request #168 from allen-cell-animated/fix/load-path-extra-…
Browse files Browse the repository at this point in the history
…slash

fix bug with trailing slash when url points to complete file (tiff)
  • Loading branch information
toloudis authored Sep 27, 2023
2 parents 7863af7 + e5a6215 commit fb0e377
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 fb0e377

Please sign in to comment.