From b0323e4d3bd56b1f98d8ee6c4c313cd7f3bf376b Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 25 Sep 2014 10:56:26 -0400 Subject: [PATCH] closed #2150 --- src/install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install.js b/src/install.js index 3b742a67cd..cddbc4e079 100644 --- a/src/install.js +++ b/src/install.js @@ -29,7 +29,7 @@ questions.main = [ { name: 'base_url', description: 'URL used to access this NodeBB', - 'default': nconf.get('base_url') || 'http://localhost:4567', + 'default': nconf.get('base_url') + (nconf.get('use_port') ? ':' + nconf.get('port') : '') || 'http://localhost:4567', pattern: /^http(?:s)?:\/\//, message: 'Base URL must begin with \'http://\' or \'https://\'', },