diff --git a/scm-ui/ui-webapp/src/repos/codeSection/components/CodeViewSwitcher.tsx b/scm-ui/ui-webapp/src/repos/codeSection/components/CodeViewSwitcher.tsx index aca95ecf02..68129653d8 100644 --- a/scm-ui/ui-webapp/src/repos/codeSection/components/CodeViewSwitcher.tsx +++ b/scm-ui/ui-webapp/src/repos/codeSection/components/CodeViewSwitcher.tsx @@ -41,7 +41,7 @@ const CodeViewSwitcher: FC = ({ baseUrl, currentUrl, branches, selectedBr }; const evaluateDestinationBranch = () => { - return ( + return encodeURIComponent( branches && (branches.filter(branch => branch.name === selectedBranch).length === 0 ? branches.filter(branch => branch.defaultBranch === true)[0].name