Skip to content

Commit adc1b12

Browse files
gkalpakhansl
authored andcommitted
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 angular#17542
1 parent 9315ab8 commit adc1b12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aio/ngsw-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"routing": {
2020
"index": "/index.html",
2121
"routes": {
22-
"/(?!e?plnkr)[^/.]*$": {
22+
"^(?!/docs/ts/latest|/styleguide).*/(?!e?plnkr)[^/.]*$": {
2323
"match": "regex"
2424
}
2525
}

0 commit comments

Comments
 (0)