From 8734b8fd3485007bbb54cfc5979aed13fc89ed6f Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Wed, 1 May 2024 19:42:12 +0000 Subject: [PATCH] feat(docs-infra): set up redirect of all requests to the root of angular.io to angular.dev (#55620) With the promotion of adev to stable and being the official docs site for angular. Requests to angular.io root, but not its subpages, should be redirected to angular.dev. Requests to paths on angular.io however will still serve as requested. PR Close #55620 --- aio/firebase.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aio/firebase.json b/aio/firebase.json index 9850fcccca0..81a5ac767b6 100644 --- a/aio/firebase.json +++ b/aio/firebase.json @@ -51,6 +51,8 @@ // `/generated/docs/api/forms/f_ormb_uilder.json`. ////////////////////////////////////////////////////////////////////////////////////////////// "redirects": [ + {"type": 301, "source": "/", "destination": "https://angular.dev/"}, + // A random bad indexed page that used `api/api` {"type": 301, "source": "/api/api/:rest*", "destination": "/api/:rest*"},