Used an event to do the route redirect