Added custom 404 display and login redirect

This commit is contained in:
2021-12-04 17:40:01 +00:00
parent 9a2d738653
commit cc8db3fea4
5 changed files with 25 additions and 7 deletions

View File

@ -27,7 +27,12 @@ $('form.form-post').submit(function(event) {
data: data,
dataType: 'json',
success: function(response) {
window.location.href = rel_success;
if (response.redirect_to) {
window.location.href = response.redirect_to;
}
else {
window.location.href = rel_success;
}
},
error: function(response) {
error_response(response);