fix redirect matching

This commit is contained in:
AJ ONeal 2017-05-25 17:23:39 -06:00
parent 172f7f3bc4
commit 6cfee0b20b
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ module.exports.create = function (app, xconfx, apiFactories, apiDeps, errorIfApi
function notConfigured(req, res, next) {
if (setupDomain !== req.hostname) {
console.log('[notConfigured] req.hostname', req.hostname);
if (/\.html\b/.test(req.url)) {
if ('/' === req.url[req.url.length - 1] || /\.html\b/.test(req.url)) {
redirectSetup(req.hostname, req, res);
return;
}