Skip to content

Commit 6aab032

Browse files
toshi0123okochi-toshiki
authored andcommitted
Fix empty serverURL did not redirect properly
Signed-off-by: toshi0123 <7948737+toshi0123@users.noreply.github.com>
1 parent 5274247 commit 6aab032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/response.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var response = {
2323
responseError(res, '403', 'Forbidden', 'oh no.')
2424
} else {
2525
req.flash('error', 'You are not allowed to access this page. Maybe try logging in?')
26-
res.redirect(config.serverURL)
26+
res.redirect(config.serverURL + '/')
2727
}
2828
},
2929
errorNotFound: function (res) {

0 commit comments

Comments
 (0)