Work around browsers without the state property of the history object
Fix login url build on the mobile test cases