mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #10473, trim trailing slashes on config url
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user