Added custom 404 display and login redirect

This commit is contained in:
viveksantayana committed 2021-12-04 17:40:01 +00:00
1 parent 5c6f56f1c3
commit 7c2b9df0d0
6 files changed
+33 -9

No files matched your search

+6 -1
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);