Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix zarr viewer #1236

Merged
merged 2 commits into from
Aug 8, 2022
Merged

Fix zarr viewer #1236

merged 2 commits into from
Aug 8, 2022

Conversation

mvandenburgh
Copy link
Member

The vtk/itk js viewer (https://kitware.github.io/itk-vtk-viewer/app) used for zarr viewing automatically appends a trailing slash to the URL it is given. So, this PR changes the URL formation to automatically strip off a trailing slash if one exists.

Fixes #1235

Trailing slashes on s3 urls break the zarr viewer
`AssetFile.url` is semantically a url, but it isn't a `URL` js object.
Copy link
Member

@jjnesbitt jjnesbitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mvandenburgh mvandenburgh merged commit 1c98e4a into master Aug 8, 2022
@mvandenburgh mvandenburgh deleted the fix-zarr-viewer branch August 8, 2022 16:50
@dandibot
Copy link
Member

🚀 PR was released in v0.2.43 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

zarr viewer doesn't work in staging
3 participants