Pressing login button when already on login page adds to url

Github

Github
platform
Improved post-login redirection to reliably return you to the exact page you came from, preserving full path and query string. Correctly honors existing back parameters without duplicating or overwriting them, ensuring expected navigation.