Launch an event before redirect the user to the right url