fixes #12425 , wrong redirect when login by url on event page.