BS-6676, stop to encode hash tag when redirected to login. Avoid further encoding issues then.