From 3a90776657df279f22695f7ef7b5d7c81476a8de Mon Sep 17 00:00:00 2001 From: Caleb Owens Date: Thu, 25 Jul 2024 16:26:58 +0200 Subject: [PATCH] Encode branch names --- app/src/lib/navigation/BranchItem.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/lib/navigation/BranchItem.svelte b/app/src/lib/navigation/BranchItem.svelte index ca75eb113..4dd4b474a 100644 --- a/app/src/lib/navigation/BranchItem.svelte +++ b/app/src/lib/navigation/BranchItem.svelte @@ -13,7 +13,7 @@ // Here we specifically want to prefer looking at the remote branch as // the there may be multiple remotes that share the same local branch. if (b.branch) - return `/${projectId}/branch/${branch?.remoteBranch?.name || branch?.localBranch?.name}`; + return `/${projectId}/branch/${encodeURIComponent(branch?.remoteBranch?.name || branch!.localBranch!.name)}`; if (b.pr) return `/${projectId}/pull/${b.pr.number}`; }