summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authortoshi01232019-02-27 17:23:58 +0900
committerokochi-toshiki2019-03-04 13:59:14 +0900
commit6aab032709f29fcc3636b8ee04ff617175b3c7bf (patch)
tree9d8d0385fdd80e37c0bbc37a7425458ce242cde7 /lib
parent5274247790daa023e4712b622b4e14a74d02805a (diff)
Fix empty serverURL did not redirect properly
Signed-off-by: toshi0123 <7948737+toshi0123@users.noreply.github.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/response.js2
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) {