From a303362481064da22c429039684c3f6b4b69632d Mon Sep 17 00:00:00 2001 From: mgechev Date: Mon, 17 May 2021 17:12:52 -0700 Subject: [PATCH] docs: redirect for devtools to the corresponding guide (#42152) Add redirects for Angular DevTools. We have https://angular.io/guide/devtools as canonical URL, but as a short URL we use https://angular.io/devtools to make the extension more discoverable. PR Close #42152 --- aio/firebase.json | 5 ++++- aio/ngsw-config.json | 4 +++- aio/tests/deployment/shared/URLS_TO_REDIRECT.txt | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/aio/firebase.json b/aio/firebase.json index b889106290..66568b3e5e 100644 --- a/aio/firebase.json +++ b/aio/firebase.json @@ -133,7 +133,10 @@ {"type": 301, "source": "/config/tsconfig", "destination": "/guide/typescript-configuration"}, {"type": 301, "source": "/config/solution-tsconfig", "destination": "https://devblogs.microsoft.com/typescript/announcing-typescript-3-9/#solution-style-tsconfig"}, {"type": 301, "source": "/config/app-package-json", "destination": "/guide/strict-mode#non-local-side-effects-in-applications"}, - {"type": 301, "source": "/strict", "destination": "/guide/strict-mode"} + {"type": 301, "source": "/strict", "destination": "/guide/strict-mode"}, + + // Use discoverable link for Angular DevTools and redirect to the guide page + {"type": 301, "source": "/devtools", "destination": "/guide/devtools"} ], "rewrites": [ { diff --git a/aio/ngsw-config.json b/aio/ngsw-config.json index 8b3c6c987c..2d21d1e166 100644 --- a/aio/ngsw-config.json +++ b/aio/ngsw-config.json @@ -159,6 +159,8 @@ "!/testing", "!/testing/**", "!/config/**", - "!/strict" + "!/strict", + "!/devtools", + "!/devtools/**" ] } diff --git a/aio/tests/deployment/shared/URLS_TO_REDIRECT.txt b/aio/tests/deployment/shared/URLS_TO_REDIRECT.txt index 4e1e67ec82..331976050b 100644 --- a/aio/tests/deployment/shared/URLS_TO_REDIRECT.txt +++ b/aio/tests/deployment/shared/URLS_TO_REDIRECT.txt @@ -196,3 +196,4 @@ /start/routing --> /start/start-routing /testing --> /guide/testing /testing/first-app-tests.html --> /guide/testing +/devtools --> /guide/devtools