From 9f91db16cbe63b4c80e83c2861f7234b42ad5154 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 8 Apr 2022 10:10:58 -0400 Subject: [PATCH] fix: #10473, trim trailing slashes on config url --- src/prestart.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/prestart.js b/src/prestart.js index 59c909a83d..48d4dc3d13 100644 --- a/src/prestart.js +++ b/src/prestart.js @@ -87,6 +87,7 @@ function loadConfig(configFile) { } if (nconf.get('url')) { + nconf.set('url', nconf.get('url').replace(/\/$/, '')); nconf.set('url_parsed', url.parse(nconf.get('url'))); // Parse out the relative_url and other goodies from the configured URL const urlObject = url.parse(nconf.get('url'));