mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
use encodedUriComponent to encode branchName
This commit is contained in:
@@ -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)}/`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user