mirror of https://github.com/status-im/codimd.git
Fix empty serverURL did not redirect properly
Signed-off-by: toshi0123 <7948737+toshi0123@users.noreply.github.com>
This commit is contained in:
parent
5274247790
commit
6aab032709
|
@ -23,7 +23,7 @@ var response = {
|
||||||
responseError(res, '403', 'Forbidden', 'oh no.')
|
responseError(res, '403', 'Forbidden', 'oh no.')
|
||||||
} else {
|
} else {
|
||||||
req.flash('error', 'You are not allowed to access this page. Maybe try logging in?')
|
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) {
|
errorNotFound: function (res) {
|
||||||
|
|
Loading…
Reference in New Issue