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
This commit is contained in:
Georgios Kalpakas 2017-06-16 14:03:26 +03:00 committed by Hans
parent 9315ab88d7
commit adc1b129e4
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@
"routing": {
"index": "/index.html",
"routes": {
"/(?!e?plnkr)[^/.]*$": {
"^(?!/docs/ts/latest|/styleguide).*/(?!e?plnkr)[^/.]*$": {
"match": "regex"
}
}