fix redirect matching
このコミットが含まれているのは:
コミット
6cfee0b20b
@ -51,7 +51,7 @@ module.exports.create = function (app, xconfx, apiFactories, apiDeps, errorIfApi
|
|||||||
function notConfigured(req, res, next) {
|
function notConfigured(req, res, next) {
|
||||||
if (setupDomain !== req.hostname) {
|
if (setupDomain !== req.hostname) {
|
||||||
console.log('[notConfigured] req.hostname', 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);
|
redirectSetup(req.hostname, req, res);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
読み込み中…
x
新しいイシューから参照
ユーザーをブロックする