diff --git a/src/qgis_geonode/apiclient/geonode_v3.py b/src/qgis_geonode/apiclient/geonode_v3.py index d68c174..40346b7 100644 --- a/src/qgis_geonode/apiclient/geonode_v3.py +++ b/src/qgis_geonode/apiclient/geonode_v3.py @@ -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]: {self.base_url}/gs/{suffix}") except AttributeError: pass return result