We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5a0fbd commit 3467b4cCopy full SHA for 3467b4c
pystac/utils.py
@@ -74,7 +74,7 @@ def _make_relative_href_url(
74
75
# If the start path is not a directory, get the parent directory
76
start_dir = (
77
- parsed_start.path if start_is_dir else parsed_start.path.rsplit("/", 1)[0]
+ parsed_start.path if start_is_dir else _pathlib.dirname(parsed_start.path)
78
)
79
80
# Strip the leading slashes from both paths
0 commit comments