fix(backend-git-gateway): double slashes when gateway_url contained a backend (#1712)

This commit is contained in:
Caleb 2018-11-21 18:49:39 -07:00 committed by Shawn Erquhart
parent 812290710f
commit 6de47cdc56

View File

@ -63,7 +63,7 @@ export default class GitGateway {
const backendTypeMatches = this.gatewayUrl.match(backendTypeRegex);
if (backendTypeMatches) {
this.backendType = backendTypeMatches[1];
this.gatewayUrl = this.gatewayUrl.replace(backendTypeRegex, '/');
this.gatewayUrl = this.gatewayUrl.replace(backendTypeRegex, '');
} else {
this.backendType = null;
}