From adc1b129e415887040d074eff9ed2f184851b22a Mon Sep 17 00:00:00 2001 From: Georgios Kalpakas Date: Fri, 16 Jun 2017 14:03:26 +0300 Subject: [PATCH] fix(aio): correctly redirect `/docs/ts/latest` and `/styleguide` Previously, we had redirect rules for Firebase for `/docs/ts/latest` and `/styleguide`, but once the ServiceWorker was activated, it would take over routing and rewrite these requests to `/index.html`. This commit fixes it by excluding them from ServiceWorker routing. Fixes #17542 --- aio/ngsw-manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/ngsw-manifest.json b/aio/ngsw-manifest.json index 589dce2102..d79a123644 100644 --- a/aio/ngsw-manifest.json +++ b/aio/ngsw-manifest.json @@ -19,7 +19,7 @@ "routing": { "index": "/index.html", "routes": { - "/(?!e?plnkr)[^/.]*$": { + "^(?!/docs/ts/latest|/styleguide).*/(?!e?plnkr)[^/.]*$": { "match": "regex" } }