Unit test and fix for login page redirect uri not including query strings.