diff --git a/stackstac/show.py b/stackstac/show.py index b994f5b..80d1bca 100644 --- a/stackstac/show.py +++ b/stackstac/show.py @@ -629,7 +629,7 @@ def layers_changed(self, change: dict): def base_url_from_window_location(url: str) -> Optional[str]: if not url: return None - if path_re := re.match(r"(^.+)\/(?:lab|notebook|voila)", url): + if path_re := re.match(r"(^.+?)\/(?:lab|notebook|voila)", url): return path_re.group(1) return None