mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-09-11 12:25:42 +03:00
Merge pull request #4493 from gitbutlerapp/encode-branch-names
Encode branch names
This commit is contained in:
commit
008a411ebf
@ -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}`;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user