diff options
author | Christoph (Sheogorath) Kern | 2019-03-05 18:11:37 +0100 |
---|---|---|
committer | GitHub | 2019-03-05 18:11:37 +0100 |
commit | de0acbb566b3a9be095c414bf15edb734ac755be (patch) | |
tree | 32908442115c4ac0022effb7fa191eb792d43ae8 /lib | |
parent | e48342a64a38005c26792791b0609b5bfa0e6518 (diff) | |
parent | 6aab032709f29fcc3636b8ee04ff617175b3c7bf (diff) |
Merge pull request #1153 from toshi0123/for_empty_serverurl
Fix empty serverURL did not redirect properly
Diffstat (limited to 'lib')
-rw-r--r-- | lib/response.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/response.js b/lib/response.js index 8191e74f..76793a46 100644 --- a/lib/response.js +++ b/lib/response.js @@ -23,7 +23,7 @@ var response = { responseError(res, '403', 'Forbidden', 'oh no.') } else { req.flash('error', 'You are not allowed to access this page. Maybe try logging in?') - res.redirect(config.serverURL) + res.redirect(config.serverURL + '/') } }, errorNotFound: function (res) { |