fix: resolve bug with path prefix on server url

Close Issue 1370
This commit is contained in:
RouxAntoine 2023-07-09 11:52:48 +02:00
parent 96f53100ba
commit b154014ee3
No known key found for this signature in database
GPG key ID: 098FB66FC0475E70
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ export function getFetchUrl(settings: IGitSourceSettings): string {
}
// "origin" is SCHEME://HOSTNAME[:PORT]
return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`
return `${serviceUrl.origin}${serviceUrl.pathname}/${encodedOwner}/${encodedName}`
}
export function getServerUrl(url?: string): URL {