mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 12:25:22 +00:00
construct gerrit gitiles webUrl properly
This commit is contained in:
parent
ae69c007f2
commit
5ba3b4b2c7
1 changed files with 1 additions and 1 deletions
|
|
@ -261,7 +261,7 @@ export const compileGerritConfig = async (
|
|||
// https://github.com/GerritCodeReview/plugins_gitiles/blob/5ee7f57/src/main/java/com/googlesource/gerrit/plugins/gitiles/GitilesWeblinks.java#L50
|
||||
if (webUrl.startsWith('/plugins/gitiles/')) {
|
||||
logger.debug(`WebUrl is a gitiles path, joining with hostUrl: ${webUrl}`);
|
||||
return path.join(hostUrl, webUrl);
|
||||
return new URL(path.join(hostUrl, webUrl)).toString();
|
||||
} else {
|
||||
logger.debug(`WebUrl is not a gitiles path, returning as is: ${webUrl}`);
|
||||
return webUrl;
|
||||
|
|
|
|||
Loading…
Reference in a new issue