test(docs-infra): add testcases for all redirect rules (#42452)
This commit adds testcases in `URLS_TO_REDIRECT.txt` for all redirect rules defined in `firebase.json`. This ensures that all rules are tested and work as expected. PR Close #42452
This commit is contained in:
parent
0c105c38da
commit
e0338189b3
|
@ -130,8 +130,8 @@
|
|||
|
||||
// Strip off the `.html` extension, because Firebase will not do this automatically any more
|
||||
// (unless the new URL points to an existing file, which is not necessarily the case here).
|
||||
{"type": 301, "source": "/:somePath*/:file.html", "destination": "/:somePath*/:file"},
|
||||
{"type": 301, "source": "/:topLevelFile.html", "destination": "/:topLevelFile"},
|
||||
{"type": 301, "source": "/:somePath*/:file.html", "destination": "/:somePath*/:file"},
|
||||
|
||||
// The below paths are referenced in users projects generated by the CLI
|
||||
{"type": 301, "source": "/config/tsconfig", "destination": "/guide/typescript-configuration"},
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
/api/core/testing/index/TestBed-class.html --> /api/core/testing/TestBed
|
||||
/api/core/testing/inject-function --> /api/core/testing/inject
|
||||
/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/Headers-class --> /guide/deprecations#http
|
||||
/api/http/Headers-class.html --> /guide/deprecations#http
|
||||
/api/http/HTTP_PROVIDERS-let --> /guide/deprecations#http
|
||||
|
@ -36,6 +38,10 @@
|
|||
/api/upgrade/static/downgradeComponent-function.html --> /api/upgrade/static/downgradeComponent
|
||||
/api/upgrade/static/index/downgradeComponent-function --> /api/upgrade/static/downgradeComponent
|
||||
/api/upgrade/static/UpgradeModule-class --> /api/upgrade/static/UpgradeModule
|
||||
/config/app-package-json --> /guide/strict-mode#non-local-side-effects-in-applications
|
||||
/config/solution-tsconfig --> https://devblogs.microsoft.com/typescript/announcing-typescript-3-9/#solution-style-tsconfig
|
||||
/config/tsconfig --> /guide/typescript-configuration
|
||||
/devtools --> /guide/devtools
|
||||
/docs/js/latest/api/ --> /api
|
||||
/docs/js/latest/api/animate/AnimationBuilder-class --> /api/animations/AnimationBuilder
|
||||
/docs/js/latest/api/animate/CssAnimationBuilder-class.html --> /api/animations/CssAnimationBuilder
|
||||
|
@ -152,9 +158,9 @@
|
|||
/docs/js/latest/guide/ngmodule --> /guide/ngmodules
|
||||
/docs/js/latest/resources --> /resources
|
||||
/docs/latest/tutorial --> /tutorial
|
||||
/styleguide --> /guide/styleguide
|
||||
/docs/styleguide --> /guide/styleguide
|
||||
/docs/styleguide.html --> /guide/styleguide
|
||||
/docs/ts/latest --> /docs
|
||||
/docs/ts/latest/api/core/HostBinding-var.html --> /api/core/HostBinding
|
||||
/docs/ts/latest/api/core/index/BaseException-class.html --> /api/core/BaseException
|
||||
/docs/ts/latest/api/core/index/PLATFORM_PIPES-let.html --> /api/common/CommonModule
|
||||
|
@ -170,12 +176,29 @@
|
|||
/docs/ts/latest/api/http/testing/index/MockConnection-class.html --> /guide/deprecations#http
|
||||
/docs/ts/latest/api/platform-browser-dynamic/index/workerAppDynamicPlatform-let.html --> /api/platform-browser-dynamic/workerAppDynamicPlatform
|
||||
/docs/ts/latest/api/testing/fakeAsync-function.html --> /api/core/testing/fakeAsync
|
||||
/docs/ts/latest/api/upgrade/somePackage/index/SomeApi-class --> /api/upgrade/somePackage/SomeApi
|
||||
/docs/ts/latest/cli-quickstart.html --> /start
|
||||
/docs/ts/latest/cookbook --> /docs
|
||||
/docs/ts/latest/cookbook/ --> /docs
|
||||
/docs/ts/latest/cookbook/index.html --> /docs
|
||||
/docs/ts/latest/cookbook/a1-a2-quick-reference.html --> /guide/ajs-quick-reference
|
||||
/docs/ts/latest/cookbook/component-communication.html --> /guide/component-interaction
|
||||
/docs/ts/latest/cookbook/dependency-injection.html --> /guide/dependency-injection-in-action
|
||||
/docs/ts/latest/cookbook/someCookbook.html --> /guide/someCookbook
|
||||
/docs/ts/latest/cookbook/ts-to-js.html --> https://v2.angular.io/docs/ts/latest/cookbook/ts-to-js.html
|
||||
/docs/ts/latest/glossary.html --> /guide/glossary
|
||||
/docs/ts/latest/guide/server-communication.html --> /guide/http
|
||||
/docs/ts/latest/guide/style-guide.html --> /guide/styleguide
|
||||
/docs/ts/latest/quickstart.html --> /start
|
||||
/foo/bar/some-file.html --> /foo/bar/some-file
|
||||
/generated/docs/devtools.json --> /generated/docs/guide/devtools.json
|
||||
/getting-started --> /start
|
||||
/getting-started/routing --> /start/start-routing
|
||||
/getting-started/data --> /start/start-data
|
||||
/getting-started/forms --> /start/start-forms
|
||||
/getting-started/deployment --> /start/start-deployment
|
||||
/guide/bazel --> https://github.com/angular/angular/blob/master/packages/bazel/src/schematics/README.md
|
||||
/guide/change-log --> https://github.com/angular/angular/blob/master/CHANGELOG.md
|
||||
/guide/cli-quickstart --> /start
|
||||
/guide/displaying-data --> /start#template-syntax
|
||||
/guide/learning-angular --> /start
|
||||
|
@ -185,16 +208,20 @@
|
|||
/guide/service-worker-getstart --> /guide/service-worker-getting-started
|
||||
/guide/service-worker-comm --> /guide/service-worker-communications
|
||||
/guide/service-worker-configref --> /guide/service-worker-config
|
||||
/guide/setup --> /guide/setup-local
|
||||
/guide/setup-systemjs-anatomy --> /guide/file-structure
|
||||
/guide/updating-to-version-10 --> https://v10.angular.io/guide/updating-to-version-10
|
||||
/guide/updating-to-version-11 --> https://v11.angular.io/guide/updating-to-version-11
|
||||
/guide/webpack --> https://v5.angular.io/guide/webpack
|
||||
/index.html?foo=bar --> /?foo=bar
|
||||
/news --> https://blog.angular.io/
|
||||
/news.html --> https://blog.angular.io/
|
||||
/some-top-level-file.html --> /some-top-level-file
|
||||
/start/data --> /start/start-data
|
||||
/start/deployment --> /start/start-deployment
|
||||
/start/forms --> /start/start-forms
|
||||
/start/routing --> /start/start-routing
|
||||
/strict --> /guide/strict-mode
|
||||
/styleguide --> /guide/styleguide
|
||||
/testing --> /guide/testing
|
||||
/testing/first-app-tests.html --> /guide/testing
|
||||
/devtools --> /guide/devtools
|
||||
|
|
Loading…
Reference in New Issue