Loading core/js/custom-login.js +2 −2 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ document.addEventListener('DOMContentLoaded', function() { // NEW: redirect ONLY when .login-form__link is clicked document.addEventListener('click', function(event) { if (event.target.closest('.login-form__link')) { window.location.href = '/'; window.location.href = '/login'; } // Look for the Back button only inside the passwordless login container const backBtn = event.target.closest( Loading @@ -29,7 +29,7 @@ document.addEventListener('DOMContentLoaded', function() { ); if (backBtn) { event.preventDefault(); window.location.href = '/'; window.location.href = '/login'; } }); if (window.location.href.includes("?showResetPassword=1")) { Loading Loading
core/js/custom-login.js +2 −2 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ document.addEventListener('DOMContentLoaded', function() { // NEW: redirect ONLY when .login-form__link is clicked document.addEventListener('click', function(event) { if (event.target.closest('.login-form__link')) { window.location.href = '/'; window.location.href = '/login'; } // Look for the Back button only inside the passwordless login container const backBtn = event.target.closest( Loading @@ -29,7 +29,7 @@ document.addEventListener('DOMContentLoaded', function() { ); if (backBtn) { event.preventDefault(); window.location.href = '/'; window.location.href = '/login'; } }); if (window.location.href.includes("?showResetPassword=1")) { Loading