From a9e05ac82f63018b461ed2d4751879d44e185011 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Wed, 28 Feb 2018 01:16:58 +0200 Subject: [PATCH] fix(aio): fix SW routing RegExp to allow redirecting `/api/animate` URLs (#22483) PR Close #22483 --- aio/ngsw-manifest.json | 2 +- aio/tests/deployment-config/shared/URLS_TO_REDIRECT.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/aio/ngsw-manifest.json b/aio/ngsw-manifest.json index 35584cc067..0be0c68de3 100644 --- a/aio/ngsw-manifest.json +++ b/aio/ngsw-manifest.json @@ -19,7 +19,7 @@ "routing": { "index": "/index.html", "routes": { - "^(?!/styleguide|/docs/.|(?:/guide/(?:cli-quickstart|metadata|ngmodule|service-worker-(?:getstart|comm|configref)|learning-angular)|/news)(?:\\.html|/)?$|/testing|/api/(?:.+/[^/]+-|platform-browser/AnimationDriver|testing|api/|(?:common/(?:NgModel|Control|MaxLengthValidator))|(?:[^/]+/)?(?:NgFor(?:$|-)|AnimationStateDeclarationMetadata|CORE_DIRECTIVES|PLATFORM_PIPES|DirectiveMetadata|HTTP_PROVIDERS))|.*/stackblitz(?:\\.html)?$|.*\\.[^\/.]+$)": { + "^(?!/styleguide|/docs/.|(?:/guide/(?:cli-quickstart|metadata|ngmodule|service-worker-(?:getstart|comm|configref)|learning-angular)|/news)(?:\\.html|/)?$|/testing|/api/(?:.+/[^/]+-|platform-browser/AnimationDriver|testing/|api/|animate/|(?:common/(?:NgModel|Control|MaxLengthValidator))|(?:[^/]+/)?(?:NgFor(?:$|-)|AnimationStateDeclarationMetadata|CORE_DIRECTIVES|PLATFORM_PIPES|DirectiveMetadata|HTTP_PROVIDERS))|.*/stackblitz(?:\\.html)?$|.*\\.[^\/.]+$)": { "match": "regex" } } diff --git a/aio/tests/deployment-config/shared/URLS_TO_REDIRECT.txt b/aio/tests/deployment-config/shared/URLS_TO_REDIRECT.txt index cdc6575d20..c4d9ee2d4f 100644 --- a/aio/tests/deployment-config/shared/URLS_TO_REDIRECT.txt +++ b/aio/tests/deployment-config/shared/URLS_TO_REDIRECT.txt @@ -1,3 +1,5 @@ +/api/animate/AnimationBuilder /api/animations/AnimationBuilder +/api/animate/CssAnimationBuilder /api/animations/CssAnimationBuilder /api/api/core/ElementRef /api/core/ElementRef /api/common/Control-class /api/forms/FormControl /api/common/CORE_DIRECTIVES /api/common/CommonModule