mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 01:15:44 +01:00
fix branch encoding in uri
This commit is contained in:
@@ -41,7 +41,7 @@ const CodeViewSwitcher: FC<Props> = ({ baseUrl, currentUrl, branches, selectedBr
|
|||||||
};
|
};
|
||||||
|
|
||||||
const evaluateDestinationBranch = () => {
|
const evaluateDestinationBranch = () => {
|
||||||
return (
|
return encodeURIComponent(
|
||||||
branches &&
|
branches &&
|
||||||
(branches.filter(branch => branch.name === selectedBranch).length === 0
|
(branches.filter(branch => branch.name === selectedBranch).length === 0
|
||||||
? branches.filter(branch => branch.defaultBranch === true)[0].name
|
? branches.filter(branch => branch.defaultBranch === true)[0].name
|
||||||
|
|||||||
Reference in New Issue
Block a user