Skip to content
Snippets Groups Projects
Commit 852ae4ec authored by John Swinbank's avatar John Swinbank
Browse files

Properly encode URL components

Otherwise, special characters (e.g. `+`) in the idaSystemURL will be
interpreted as encoded data and converted to spaces. Which means that, say,
`git+https` will end up as `git https`. And then Bad Stuff (tm) happens.
parent e4b76eb4
No related branches found
No related tags found
1 merge request!100Properly encode URL components
......@@ -342,7 +342,7 @@ export default function Interactive() {
{ showDeploy ?
<Button className="deploy-button" href={api_host + "ida/deploy?facility=" + idaSystemURL + "&workflow=" + workflowURL} target="_blank">Deploy</Button>
<Button className="deploy-button" href={api_host + "ida/deploy?facility=" + encodeURIComponent(idaSystemURL) + "&workflow=" + encodeURIComponent(workflowURL)} target="_blank">Deploy</Button>
: null }
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment