From 6aab032709f29fcc3636b8ee04ff617175b3c7bf Mon Sep 17 00:00:00 2001 From: toshi0123 <7948737+toshi0123@users.noreply.github.com> Date: Wed, 27 Feb 2019 17:23:58 +0900 Subject: [PATCH] Fix empty serverURL did not redirect properly Signed-off-by: toshi0123 <7948737+toshi0123@users.noreply.github.com> --- lib/response.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/response.js b/lib/response.js index 8191e74..76793a4 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) {