From 86695c769a4b8bb19fe57e33185dafe7a0717376 Mon Sep 17 00:00:00 2001 From: Eduard Heimbuch Date: Mon, 13 Jan 2020 15:16:06 +0100 Subject: [PATCH] fix branch encoding in uri --- .../src/repos/codeSection/components/CodeViewSwitcher.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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