Avoiding Dead Links with Angular Router

Scenario

We have the old guide located at . We have a new guide located at .

We want to avoid dead or broken links to .

Approach

Configure the router like this:

{ path: 'guides/previous-guide', redirectTo: '/guides/new-guide'}

Bonus

Document the change like this:

// =======================================================
// See https://github.com/examples/documentation/pull/9574
// guides/new-guide
// Became the new guide
// =======================================================

Founder of Firefly Semantics Corporation