]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - src/components/ConnectivityChecker.vue
What's up docker custom service (#444)
[github/bastienwirtz/homer.git] / src / components / ConnectivityChecker.vue
index 2b3e47b243adba523f5ade47f86cb2cf53d519b4..5c7761815051bbc4f75a475d1ab87832c685b1e0 100644 (file)
@@ -56,7 +56,8 @@ export default {
 
       // 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",