fix(aio): do not rewrite /styleguide URL in Service Worker (#22085)
This URL needs to be redirected via the server, so we must exclude it from being rewitten. Closes #22078 PR Close #22085
This commit is contained in:
parent
c3484450b8
commit
5fc77c90cb
|
@ -19,7 +19,7 @@
|
||||||
"routing": {
|
"routing": {
|
||||||
"index": "/index.html",
|
"index": "/index.html",
|
||||||
"routes": {
|
"routes": {
|
||||||
"^(?!/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/|(?:common/(?:NgModel|Control|MaxLengthValidator))|(?:[^/]+/)?(?:NgFor(?:$|-)|AnimationStateDeclarationMetadata|CORE_DIRECTIVES|PLATFORM_PIPES|DirectiveMetadata|HTTP_PROVIDERS))|.*/stackblitz(?:\\.html)?$|.*\\.[^\/.]+$)": {
|
||||||
"match": "regex"
|
"match": "regex"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -150,6 +150,7 @@
|
||||||
/docs/js/latest/guide/ngmodule /guide/ngmodules
|
/docs/js/latest/guide/ngmodule /guide/ngmodules
|
||||||
/docs/js/latest/resources /resources
|
/docs/js/latest/resources /resources
|
||||||
/docs/latest/tutorial /tutorial
|
/docs/latest/tutorial /tutorial
|
||||||
|
/styleguide /guide/styleguide
|
||||||
/docs/styleguide /guide/styleguide
|
/docs/styleguide /guide/styleguide
|
||||||
/docs/styleguide.html /guide/styleguide
|
/docs/styleguide.html /guide/styleguide
|
||||||
/docs/ts/latest/api/core/HostBinding-var.html /api/core/HostBinding
|
/docs/ts/latest/api/core/HostBinding-var.html /api/core/HostBinding
|
||||||
|
|
Loading…
Reference in New Issue