diff --git a/polygerrit-ui/app/elements/admin/gr-repo/gr-repo.js b/polygerrit-ui/app/elements/admin/gr-repo/gr-repo.js index 6443095a1a..77a1e2a3ec 100644 --- a/polygerrit-ui/app/elements/admin/gr-repo/gr-repo.js +++ b/polygerrit-ui/app/elements/admin/gr-repo/gr-repo.js @@ -307,9 +307,9 @@ commands.push({ title, command: commandObj[title] - .replace('${project}', repo) + .replace('${project}', encodeURI(repo)) .replace('${project-base-name}', - repo.substring(repo.lastIndexOf('/') + 1)), + encodeURI(repo.substring(repo.lastIndexOf('/') + 1))), }); } return commands;