Skip to content

Commit

Permalink
[Fixes: #259] Loading of dataset fails if domain contains geoserver
Browse files Browse the repository at this point in the history
  • Loading branch information
t-book authored Mar 24, 2023
1 parent 2730d84 commit b79280c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/qgis_geonode/apiclient/geonode_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ def _get_service_urls(
if auth_provider_name == "basic":
for service_type, retrieved_url in result.items():
try:
prefix, suffix = retrieved_url.partition("geoserver")[::2]
result[service_type] = f"{self.base_url}/gs{suffix}"
log(f"result[service_type]: {self.base_url}/gs{suffix}")
prefix, suffix = retrieved_url.partition("/geoserver/")[::2]
result[service_type] = f"{self.base_url}/gs/{suffix}"
log(f"result[service_type]: ABC {self.base_url}/gs/{suffix}")
except AttributeError:
pass
return result
Expand Down

0 comments on commit b79280c

Please sign in to comment.