From 6bf5ec241d03f158fc2876cb747fcc5273e450d6 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Fri, 24 May 2019 12:19:37 +0200 Subject: [PATCH] docs(core): static-query migration should use permalink for migration guide (#30649) 8479cb4233ba00cc6a7156467b46f51ed9a753f7 updated the static-query migration to refer to the new guide on AIO. Unfortunately these URLs are currently not valid as the guide is only available on `next.angular.io` right now. In order to make the link work permanently (e.g. if we eventually remove the guide in future major versions), we use the permalink from the `v8` subdomain. PR Close #30649 --- packages/core/schematics/migrations/static-queries/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/schematics/migrations/static-queries/index.ts b/packages/core/schematics/migrations/static-queries/index.ts index f574371283..a12f1c06ba 100644 --- a/packages/core/schematics/migrations/static-queries/index.ts +++ b/packages/core/schematics/migrations/static-queries/index.ts @@ -58,7 +58,7 @@ async function runMigration(tree: Tree, context: SchematicContext) { logger.info('With Angular version 8, developers need to'); logger.info('explicitly specify the timing of ViewChild and'); logger.info('ContentChild queries. Read more about this here:'); - logger.info('https://angular.io/guide/static-query-migration'); + logger.info('https://v8.angular.io/guide/static-query-migration'); if (!buildPaths.length && !testPaths.length) { throw new SchematicsException( @@ -101,7 +101,7 @@ async function runMigration(tree: Tree, context: SchematicContext) { logger.info('Some queries could not be migrated automatically. Please go'); logger.info('through these manually and apply the appropriate timing.'); logger.info('For more info on how to choose a flag, please see: '); - logger.info('https://angular.io/guide/static-query-migration'); + logger.info('https://v8.angular.io/guide/static-query-migration'); failures.forEach(failure => logger.warn(`⮑ ${failure}`)); }