mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-20 12:48:52 +00:00
Emergency fix
This commit is contained in:
parent
8465e8adbf
commit
339dec3ac0
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ function nonApiUrl(req) {
|
|||
}
|
||||
|
||||
module.exports.forceHabitica = function(req, res, next) {
|
||||
if(nconf.get('NODE_ENV') === 'production' && req.hostname !== 'habitica.com' && nonApiUrl(req)) {
|
||||
if(nconf.get('NODE_ENV') === 'production' && (req.hostname.search('habitica') === -1) && nonApiUrl(req)) {
|
||||
return res.redirect('https://habitica.com' + req.url);
|
||||
}
|
||||
next();
|
||||
|
|
|
|||
Loading…
Reference in a new issue