We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae69c00 commit 5ba3b4bCopy full SHA for 5ba3b4b
packages/backend/src/repoCompileUtils.ts
@@ -261,7 +261,7 @@ export const compileGerritConfig = async (
261
// https://github.com/GerritCodeReview/plugins_gitiles/blob/5ee7f57/src/main/java/com/googlesource/gerrit/plugins/gitiles/GitilesWeblinks.java#L50
262
if (webUrl.startsWith('/plugins/gitiles/')) {
263
logger.debug(`WebUrl is a gitiles path, joining with hostUrl: ${webUrl}`);
264
- return path.join(hostUrl, webUrl);
+ return new URL(path.join(hostUrl, webUrl)).toString();
265
} else {
266
logger.debug(`WebUrl is not a gitiles path, returning as is: ${webUrl}`);
267
return webUrl;
0 commit comments