Skip to content
This repository was archived by the owner on Feb 17, 2024. It is now read-only.

Commit 0b01f67

Browse files
authored
fix(WebCacheLocation): avoid security error
1 parent 830a4e0 commit 0b01f67

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/angular-web-cached-view.service.ts

+4
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,15 @@ export class WebCacheLocation extends Location {
3030
}
3131

3232
go(path: string, query: string = '') {
33+
const host = location.host;
34+
if (GOOGLE_WEBCACHE.test(host)) { return; }
3335
const url = createOriginUrl(path);
3436
this._platformStrategy.pushState(null, '', url, query);
3537
}
3638

3739
replaceState(path: string, query: string = '') {
40+
const host = location.host;
41+
if (GOOGLE_WEBCACHE.test(host)) { return; }
3842
const url = createOriginUrl(path);
3943
this._platformStrategy.replaceState(null, '', url, query);
4044
}

0 commit comments

Comments
 (0)