Fixed a bug where the login URL would not include URL parameters of the
current URL.