Skip to content

Commit de0acbb

Browse files
authored
Merge pull request #1153 from toshi0123/for_empty_serverurl
Fix empty serverURL did not redirect properly
2 parents e48342a + 6aab032 commit de0acbb

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)