Fix: url parameter being lost during login