mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-04 04:59:40 +00:00
Switch redirect to baseUrl
This commit is contained in:
parent
c402ec61b2
commit
0c92c4a048
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ function nonApiUrl(req) {
|
|||
|
||||
module.exports.forceHabitica = function(req, res, next) {
|
||||
if(nconf.get('NODE_ENV') === 'production' && !isProxied(req) && nonApiUrl(req)) {
|
||||
return res.redirect('https://habitica.com' + req.url);
|
||||
return res.redirect(baseUrl + req.url);
|
||||
}
|
||||
next();
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue