angular-cn/packages/service-worker/worker
George Kalpakas d19ef6534f fix(service-worker): correctly handle relative base href (#37922)
In some cases, it is useful to use a relative base href in the app (e.g.
when an app has to be accessible on different URLs, such as on an
intranet and the internet - see #25055 for a related discussion).

Previously, the Angular ServiceWorker was not able to handle relative
base hrefs (for example when building the with `--base-href=./`).

This commit fixes this by normalizing all URLs from the ServiceWorker
configuration wrt the ServiceWorker's scope.

Fixes #25055

PR Close #37922
2020-07-09 09:44:57 -07:00
..
src fix(service-worker): correctly handle relative base href (#37922) 2020-07-09 09:44:57 -07:00
test fix(service-worker): correctly handle relative base href (#37922) 2020-07-09 09:44:57 -07:00
testing test(service-worker): make mock implementations more similar to actual ones (#37922) 2020-07-09 09:44:57 -07:00
BUILD.bazel build: enable service-worker tests on saucelabs (#36129) 2020-04-01 15:37:47 -07:00
main.ts refactor(service-worker): move asset URL normalization to `Adapter` (#37922) 2020-07-09 09:44:56 -07:00