Skip to content

Commit

Permalink
Handle the URL with subdirectories
Browse files Browse the repository at this point in the history
  • Loading branch information
u10313335 committed Mar 25, 2024
1 parent 1039d8d commit 0808018
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion repo2docker/contentproviders/ckan.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ def detect(self, source, ref=None, extra_args=None):
return None

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

status_show_url = f"{api_url}status_show"
resp = self.urlopen(status_show_url)
Expand Down

0 comments on commit 0808018

Please sign in to comment.