It works well but the architecture seems weird when we call the redirect function of the router in a routing guard. Routing is responsible for routing between routes registered.