Fix empty serverURL did not redirect properly

Signed-off-by: toshi0123 <7948737+toshi0123@users.noreply.github.com>
This commit is contained in:
toshi0123 2019-02-27 17:23:58 +09:00 committed by okochi-toshiki
parent 5274247790
commit 6aab032709
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) {