Skip to content

Commit

Permalink
#258 Fix portal metadata URL generation (handling missing "/")
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSAMPERE committed Apr 3, 2024
1 parent 5ab5910 commit a6ead20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/results/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,10 @@ def build_md_portal_url(self, metadata_id: str):
portal_base_url = settings_mng.get_value("isogeo/settings/portal_base_url", "")

if add_portal_md_url and portal_base_url != "":
portal_md_url = portal_base_url + metadata_id
if portal_base_url.endswith("/"):
portal_md_url = portal_base_url + metadata_id
else:
portal_md_url = portal_base_url + "/" + metadata_id
else:
portal_md_url = ""

Expand Down

0 comments on commit a6ead20

Please sign in to comment.