Extract the relative dataset path from a full URL — the path-portion
up to and including the first .zarr or .zarr.zip segment. Used to
pre-populate the breadcrumb when re-opening the browser on a dataset that's
already loaded.
Returns an empty string when:
the URL is empty / falsy;
parsing fails (defensive);
no .zarr or .zarr.zip segment is found in the URL path.
Extract the relative dataset path from a full URL — the path-portion up to and including the first
.zarror.zarr.zipsegment. Used to pre-populate the breadcrumb when re-opening the browser on a dataset that's already loaded.Returns an empty string when:
.zarror.zarr.zipsegment is found in the URL path.