summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2019-03-05 18:11:37 +0100
committerGitHub2019-03-05 18:11:37 +0100
commitde0acbb566b3a9be095c414bf15edb734ac755be (patch)
tree32908442115c4ac0022effb7fa191eb792d43ae8 /lib
parente48342a64a38005c26792791b0609b5bfa0e6518 (diff)
parent6aab032709f29fcc3636b8ee04ff617175b3c7bf (diff)
Merge pull request #1153 from toshi0123/for_empty_serverurl
Fix empty serverURL did not redirect properly
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) {