From 6de47cdc563b93a13417a93e134cbbe25ecdcf88 Mon Sep 17 00:00:00 2001 From: Caleb Date: Wed, 21 Nov 2018 18:49:39 -0700 Subject: [PATCH] fix(backend-git-gateway): double slashes when gateway_url contained a backend (#1712) --- packages/netlify-cms-backend-git-gateway/src/implementation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/netlify-cms-backend-git-gateway/src/implementation.js b/packages/netlify-cms-backend-git-gateway/src/implementation.js index 9f63cde0..2572ed0f 100644 --- a/packages/netlify-cms-backend-git-gateway/src/implementation.js +++ b/packages/netlify-cms-backend-git-gateway/src/implementation.js @@ -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; }