// extra check to make sure we're not offline
let that = this;
- const aliveCheckUrl = window.location.href + "?t=" + new Date().valueOf();
+ const urlPath = window.location.pathname.replace(/\/+$/, "");
+ const aliveCheckUrl = `${window.location.origin}${urlPath}/index.html?t=${new Date().valueOf()}`;
return fetch(aliveCheckUrl, {
method: "HEAD",
cache: "no-store",