Merge pull request #1153 from toshi0123/for_empty_serverurl

Fix empty serverURL did not redirect properly
This commit is contained in:
Christoph (Sheogorath) Kern 2019-03-05 18:11:37 +01:00 committed by GitHub
commit de0acbb566
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {