From 4b0e9156986e2dcb23f760783d6fd408ccef3a51 Mon Sep 17 00:00:00 2001 From: Andrew Darqui Date: Sun, 6 Oct 2013 04:32:03 -0400 Subject: [PATCH] just changed the 403/404 checking logic to use regex. --- public/src/ajaxify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 2d0ddc273a..81344db292 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -117,7 +117,7 @@ var ajaxify = {}; if (hrefEmpty(this.href) || this.target !== '' || this.protocol === 'javascript:') return; - if(window.location.pathname != '/403' && window.location.pathname != '/404') + if(!window.location.pathname.match(/\/(403|404)$/g)) app.previousUrl = window.location.href; if (!e.ctrlKey && e.which === 1) {