Skip to content

Commit

Permalink
Merge pull request #273 from ahmdthr/canonical-base-url-scheme
Browse files Browse the repository at this point in the history
Fixed connection error when base url with '#' is provided as the connection url
  • Loading branch information
Gpetrak authored Oct 16, 2024
2 parents 9a5acc2 + 3d263f8 commit 9ca8c3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qgis_geonode/apiclient/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(
):
super().__init__()
self.auth_config = auth_config or ""
self.base_url = base_url.rstrip("/")
self.base_url = base_url.rstrip("#/")
self.page_size = page_size
self.wfs_version = wfs_version
self.network_requests_timeout = network_requests_timeout
Expand Down
2 changes: 1 addition & 1 deletion src/qgis_geonode/gui/connection_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def get_connection_settings(self) -> ConnectionSettings:
return ConnectionSettings(
id=self.connection_id,
name=self.name_le.text().strip(),
base_url=self.url_le.text().strip().rstrip("/"),
base_url=self.url_le.text().strip().rstrip("#/"),
auth_config=self.authcfg_acs.configId(),
page_size=self.page_size_sb.value(),
geonode_version=self.remote_geonode_version,
Expand Down

0 comments on commit 9ca8c3f

Please sign in to comment.