From 36fb5744db3586d7c54d33d61274e0847119f07d Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Thu, 17 Jun 2021 23:58:15 +0300 Subject: [PATCH] build(docs-infra): add missing redirect rule for `api/http` in `firebase.json` (#42452) Previously, only sub-paths, such as `api/http/foo`, were redirected to `guide/deprecations#http`. This commit ensures that also `api/http` itself (which used to point to the `http` module's API page) is redirected as well. PR Close #42452 --- aio/firebase.json | 1 + aio/tests/deployment/shared/URLS_TO_REDIRECT.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/aio/firebase.json b/aio/firebase.json index fd522a4806..c1e3e90b26 100644 --- a/aio/firebase.json +++ b/aio/firebase.json @@ -67,6 +67,7 @@ {"type": 301, "source": "/**/api/common/NgModel", "destination": "/api/forms/NgModel"}, // `@angular/http` package was removed, and new `HttpClient` APIs are available under `@angular/common/http` package + {"type": 301, "source": "/api/http", "destination": "/guide/deprecations#http"}, {"type": 301, "source": "/api/http/**", "destination": "/guide/deprecations#http"}, // Animations moves, renames and removals diff --git a/aio/tests/deployment/shared/URLS_TO_REDIRECT.txt b/aio/tests/deployment/shared/URLS_TO_REDIRECT.txt index d3f27ba2b2..505075e879 100644 --- a/aio/tests/deployment/shared/URLS_TO_REDIRECT.txt +++ b/aio/tests/deployment/shared/URLS_TO_REDIRECT.txt @@ -24,6 +24,7 @@ /api/core/testing/inject-function.html --> /api/core/testing/inject /api/foo/bar/HTTP_PROVIDERS --> /guide/deprecations#http /api/foo/bar/HTTP_PROVIDERS_AND_MORE --> /guide/deprecations#http +/api/http --> /guide/deprecations#http /api/http/Headers-class --> /guide/deprecations#http /api/http/Headers-class.html --> /guide/deprecations#http /api/http/HTTP_PROVIDERS-let --> /guide/deprecations#http