aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorbchavez <bchavez@bitarmory.com>2022-10-23 21:52:30 -0600
committerBastien Wirtz <bastien.wirtz@gmail.com>2022-11-05 22:35:41 +0100
commitd141a69a7debea39aa17bff52cef3b8ce5e63f45 (patch)
tree8004028da3e7332ce0559eeade1b9badfaee71b6 /src
parentbeb5755747316be8b1d9579d0e194d5a35714f3d (diff)
downloadhomer-d141a69a7debea39aa17bff52cef3b8ce5e63f45.tar.gz
homer-d141a69a7debea39aa17bff52cef3b8ce5e63f45.tar.zst
homer-d141a69a7debea39aa17bff52cef3b8ce5e63f45.zip
ConnectivityChecker: Bug Fix - Remove double // in aliveCheckUrl causing Invalid Redirect URL with CloudFlare Access.
Diffstat (limited to 'src')
-rw-r--r--src/components/ConnectivityChecker.vue5
1 files 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 {
56 56
57 // extra check to make sure we're not offline 57 // extra check to make sure we're not offline
58 let that = this; 58 let that = this;
59 const aliveCheckUrl = `${window.location.origin}${ 59 const urlPath = window.location.pathname.replace(/\/+$/, "");
60 window.location.pathname 60 const aliveCheckUrl = `${window.location.origin}${urlPath}/index.html?t=${new Date().valueOf()}`;
61 }/index.html?t=${new Date().valueOf()}`;
62 return fetch(aliveCheckUrl, { 61 return fetch(aliveCheckUrl, {
63 method: "HEAD", 62 method: "HEAD",
64 cache: "no-store", 63 cache: "no-store",