We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccc043c commit 2eab4adCopy full SHA for 2eab4ad
1 file changed
synapseclient/api/web_services.py
@@ -102,10 +102,14 @@ async def main():
102
103
# Construct the URL
104
portal_endpoint = client.portalEndpoint
105
+
106
+ if portal_endpoint[-1] != "/":
107
+ portal_endpoint += "/"
108
109
if subpage_id is None:
- url = f"{portal_endpoint}/Synapse:{synapse_id}"
110
+ url = f"{portal_endpoint}Synapse:{synapse_id}"
111
else:
- url = f"{portal_endpoint}/Wiki:{synapse_id}/ENTITY/{subpage_id}"
112
+ url = f"{portal_endpoint}Wiki:{synapse_id}/ENTITY/{subpage_id}"
113
114
# Open in browser
115
webbrowser.open(url)
0 commit comments