diff --git a/firebase.json b/firebase.json index 3b5a956478..e72184b069 100644 --- a/firebase.json +++ b/firebase.json @@ -1,15 +1,54 @@ { "hosting": { "public": "www", - "rewrites": [ + "redirects": [ { - "source": "/docs/dart/latest/testing", - "destination": "/docs/dart/latest/guide/testing.html" + "source": "/docs/dart/latest/quickstart.html", + "destination": "https://webdev.dartlang.org/angular/quickstart?utm_campaign=dart_migration&utm_medium=redirect&utm_source=angular.io", + "type": 301 + }, + { + "source": "/docs/dart/latest/tutorial/toh-pt5.html", + "destination": "https://webdev.dartlang.org/angular/tutorial/toh-pt5?utm_campaign=dart_migration&utm_medium=redirect&utm_source=angular.io", + "type": 301 }, { "source": "/docs/dart/latest/tutorial", - "destination": "/docs/dart/latest/index.html" + "destination": "https://webdev.dartlang.org/angular/tutorial?utm_campaign=dart_migration&utm_medium=redirect&utm_source=angular.io", + "type": 301 }, + { + "source": "/docs/dart/latest/tutorial/**", + "destination": "https://webdev.dartlang.org/angular/tutorial?utm_campaign=dart_migration&utm_medium=redirect&utm_source=angular.io", + "type": 301 + }, + { + "source": "/docs/dart/latest/api", + "destination": "https://webdev.dartlang.org/angular/api?utm_campaign=dart_migration&utm_medium=redirect&utm_source=angular.io", + "type": 301 + }, + { + "source": "/docs/dart/latest/api/**", + "destination": "https://webdev.dartlang.org/angular/api?utm_campaign=dart_migration&utm_medium=redirect&utm_source=angular.io", + "type": 301 + }, + { + "source": "/docs/dart/latest/guide/**", + "destination": "https://webdev.dartlang.org/angular/guide?utm_campaign=dart_migration&utm_medium=redirect&utm_source=angular.io", + "type": 301 + }, + { + "source": "/**/dart", + "destination": "https://webdev.dartlang.org/angular?utm_campaign=dart_migration&utm_medium=redirect&utm_source=angular.io", + "type": 301 + }, + { + "source": "/**/dart/**", + "destination": "https://webdev.dartlang.org/angular?utm_campaign=dart_migration&utm_medium=redirect&utm_source=angular.io", + "type": 301 + } + ], + "rewrites": [ { "source": "/docs/js/latest/testing", "destination": "/docs/js/latest/guide/testing.html" @@ -58,10 +97,6 @@ "source": "/survey", "destination": "/survey.html" }, - { - "source": "/dart", - "destination": "/docs/dart/latest/index.html" - }, { "source": "/styleguide", "destination": "/docs/ts/latest/guide/style-guide.html"