Remove host encoding

Fixes bug #15874

Signed-off-by: matt-200 <123186429+matt-200@users.noreply.github.com>
This commit is contained in:
matt-200
2023-01-25 17:50:04 -06:00
committed by GitHub
parent 7c0a33390a
commit bce8eb1bff
@@ -242,12 +242,11 @@ export function buildEncodedUrl(
repo: string,
path: string,
): string {
const encodedHost = encodeURIComponent(host);
const encodedOrg = encodeURIComponent(org);
const encodedProject = encodeURIComponent(project);
const encodedRepo = encodeURIComponent(repo);
const encodedPath = encodeURIComponent(path);
return `https://${encodedHost}/${encodedOrg}/${encodedProject}/_git/${encodedRepo}?path=${encodedPath}`;
return `https://${host}/${encodedOrg}/${encodedProject}/_git/${encodedRepo}?path=${encodedPath}`;
}
function convertReviewer(