Fix wrong homepage on login with url