GTNPORTAL-3415: Fix LegacyRequestHandler to preserve the query string wh...

...en redirecting to the login page