Node.js based forum software built for the modern web
if nodebb returns 403/404, don't overwrite previousUrl. If you don't do this, when logging in after a 403/404, it will redirect you to the 403/404 page.
Andrew Darquief47f3fd157b
diff --git a/public/src/ajaxify.js b/public/src/ajaxify.jsindex 7b8cf215fb..2d0ddc273a 100644--- a/public/src/ajaxify.js+++ b/public/src/ajaxify.js@@ -117,7 +117,8 @@ var ajaxify = {};if (hrefEmpty(this.href) || this.target !== '' || this.protocol === 'javascript:')return;- app.previousUrl = window.location.href;+ if(window.location.pathname != '/403' && window.location.pathname != '/404')+ app.previousUrl = window.location.href;if (!e.ctrlKey && e.which === 1) {if (this.host === window.location.host) {@@ -192,4 +193,4 @@ var ajaxify = {};}}-}(jQuery));\ No newline at end of file+}(jQuery));