added query parameters to the redirect url for LoginPage, if they exist