just changed the 403/404 checking logic to use regex.

This commit is contained in:
Andrew Darqui
2013-10-06 04:32:03 -04:00
parent b2e81b5d17
commit 4b0e915698

View File

@@ -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) {