From 81b6e45b60c5aa503db2dbb5f0dd42b7944b4d3b Mon Sep 17 00:00:00 2001 From: aparziale Date: Mon, 17 Nov 2025 17:22:02 +0100 Subject: [PATCH] docs(docs-infra): add advanced recommendations Added recommendation in advanced section for redirectTo and canMatch will generate an error. These properties are incompatible together fixes #65267 (cherry picked from commit c757fd6c29f94a24857f28e4df0632e34796b202) --- adev/src/app/features/update/recommendations.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/adev/src/app/features/update/recommendations.ts b/adev/src/app/features/update/recommendations.ts index e1ab7b9d4a4..5b0f002d705 100644 --- a/adev/src/app/features/update/recommendations.ts +++ b/adev/src/app/features/update/recommendations.ts @@ -2742,4 +2742,12 @@ export const RECOMMENDATIONS: Step[] = [ action: 'In templates parentheses are now always respected. This can lead to runtime breakages when nullish coalescing were nested in parathesis. eg `(foo?.bar).baz` will throw if `foo` is nullish as it would in native JavaScript.', }, + { + possibleIn: 2000, + necessaryAsOf: 2000, + level: ApplicationComplexity.Advanced, + step: '20.0.0_router_generate_error_redirectTo_and_canMatch_incompatible_together', + action: + 'Route configurations are now validated more rigorously. Routes that combine `redirectTo` and `canMatch` protections will generate an error, as these properties are incompatible together by default.', + }, ];