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
1 changed files with 1 additions and 1 deletions

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