fix: #10473, trim trailing slashes on config url

isekai-main
Julian Lam 3 years ago
parent 91026e5f14
commit 9f91db16cb

@ -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'));

Loading…
Cancel
Save