Angular 18 Router Redirect Upgrade
Automates the review and migration of Angular Router redirect logic to comply with Angular 18 standards and RedirectCommand implementations.
This skill assists developers in transitioning to the new routing mechanics introduced in Angular 18, specifically focusing on the RedirectCommand class and functional redirectTo properties. It helps identify legacy redirect patterns in guards and resolvers, ensures navigation history behavior is correctly preserved, and updates route metadata readers to handle the increased complexity of modern Angular routing. This is essential for maintaining robust navigation logic and type safety during a version upgrade.
Key Features
012 GitHub stars
02Ensures TypeScript typings are compatible with the latest Router API
03Identifies legacy redirect-producing code in guards and resolvers
04Validates navigation history and replaceUrl behavior for consistency
05Implements the Angular 18 RedirectCommand for enhanced navigation control
06Updates route metadata readers to support functional redirectTo definitions
Use Cases
01Upgrading an Angular application from version 17 to 18
02Implementing advanced navigation redirects with specific history requirements
03Refactoring complex routing guards that return UrlTree objects