use encodedUriComponent to encode branchName

This commit is contained in:
Eduard Heimbuch
2019-09-05 07:44:19 +02:00
parent cdc34be113
commit c5a90963ba

View File

@@ -87,7 +87,7 @@ class Sources extends React.Component<Props, State> {
if (defaultBranches.length > 0) {
this.setState({ selectedBranch: defaultBranches[0] });
this.props.history.push(
`${baseUrl}/${defaultBranches[0].name.replace("/", "%2F")}/`
`${baseUrl}/${encodeURIComponent(defaultBranches[0].name)}/`
);
}
}