Node.js based forum software built for the modern web
closes #6697
Julian Lama77630c6beeb
diff --git a/public/src/client/topic/votes.js b/public/src/client/topic/votes.jsindex ee4813d173..0c63fc47ed 100644--- a/public/src/client/topic/votes.js+++ b/public/src/client/topic/votes.js@@ -72,6 +72,10 @@ define('forum/topic/votes', ['components', 'translator', 'benchpress'], functionif (err) {app.alertError(err.message);}++ if (err.message === '[[error:not-logged-in]]') {+ ajaxify.go('login');+ }});return false;diff --git a/src/controllers/index.js b/src/controllers/index.jsindex a91636dfc7..f5e86c78f8 100644--- a/src/controllers/index.js+++ b/src/controllers/index.js@@ -92,6 +92,7 @@ Controllers.login = function (req, res, next) {var allowLoginWith = (meta.config.allowLoginWith || 'username-email');var returnTo = (req.headers['x-return-to'] || '').replace(nconf.get('base_url'), '');+ console.log('returnTo is', returnTo);var errorText;if (req.query.error === 'csrf-invalid') {