From d141a69a7debea39aa17bff52cef3b8ce5e63f45 Mon Sep 17 00:00:00 2001 From: bchavez Date: Sun, 23 Oct 2022 21:52:30 -0600 Subject: ConnectivityChecker: Bug Fix - Remove double // in aliveCheckUrl causing Invalid Redirect URL with CloudFlare Access. --- src/components/ConnectivityChecker.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/ConnectivityChecker.vue b/src/components/ConnectivityChecker.vue index 0e724fc..5c77618 100644 --- a/src/components/ConnectivityChecker.vue +++ b/src/components/ConnectivityChecker.vue @@ -56,9 +56,8 @@ export default { // extra check to make sure we're not offline let that = this; - const aliveCheckUrl = `${window.location.origin}${ - window.location.pathname - }/index.html?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", -- cgit v1.2.3