Skip to content

Commit 0808018

Browse files
committed
Handle the URL with subdirectories
1 parent 1039d8d commit 0808018

File tree

1 file changed

+3
-1
lines changed
  • repo2docker/contentproviders

1 file changed

+3
-1
lines changed

repo2docker/contentproviders/ckan.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ def detect(self, source, ref=None, extra_args=None):
5050
return None
5151

5252
api_url_path = "/api/3/action/"
53-
api_url = parsed_url._replace(path=api_url_path).geturl()
53+
api_url = parsed_url._replace(
54+
path="/".join(url_parts[:-2]) + api_url_path
55+
).geturl()
5456

5557
status_show_url = f"{api_url}status_show"
5658
resp = self.urlopen(status_show_url)

0 commit comments

Comments
 (0)