79382201

Date: 2025-01-23 18:38:21
Score: 0.5
Natty:
Report link

I tried this way and it worked fine

$.fn.dataTable.ext.errMode = function (settings, helpPage, message) {
    if (settings.jqXHR && settings.jqXHR.status === 401) {
        window.location.href = "/Login";
    }
};
Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: TheSun