fix(route): move $routeRedirect to the right place