Skip to content

Commit

Permalink
build(docs-infra): add missing redirect rule for api/http in `fireb…
Browse files Browse the repository at this point in the history
…ase.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
  • Loading branch information
gkalpak authored and dylhunn committed Jun 18, 2021
1 parent 3e74483 commit fa2775f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions aio/firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions aio/tests/deployment/shared/URLS_TO_REDIRECT.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa2775f

Please sign in to comment.