X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2Fcomponents%2FConnectivityChecker.vue;h=5c7761815051bbc4f75a475d1ab87832c685b1e0;hb=c9a649518616f3cf4e8c39d772dfbc2eff330a03;hp=2b3e47b243adba523f5ade47f86cb2cf53d519b4;hpb=10f6f123e86ca571c99a232a43f7ea920fde9894;p=github%2Fbastienwirtz%2Fhomer.git diff --git a/src/components/ConnectivityChecker.vue b/src/components/ConnectivityChecker.vue index 2b3e47b..5c77618 100644 --- a/src/components/ConnectivityChecker.vue +++ b/src/components/ConnectivityChecker.vue @@ -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",