summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/errors.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/errors.js b/lib/errors.js
index 56fb7027..f86e8aa3 100644
--- a/lib/errors.js
+++ b/lib/errors.js
@@ -7,7 +7,7 @@ module.exports = {
responseError(res, '403', 'Forbidden', 'oh no.')
} else {
if (!req.session) req.session = {}
- req.session.returnTo = req.originalUrl || config.serverUrl + '/';
+ req.session.returnTo = req.originalUrl || config.serverUrl + '/'
req.flash('error', 'You are not allowed to access this page. Maybe try logging in?')
res.redirect(config.serverURL + '/')
}