From 6abafd3883b2053400b70f1f178d97d5d65af946 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sat, 11 Jul 2020 11:50:03 +0200 Subject: [PATCH] Use https version for buurtnatuur --- index.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/index.ts b/index.ts index d05afba0fc..66a2bc687d 100644 --- a/index.ts +++ b/index.ts @@ -22,6 +22,17 @@ import {SearchAndGo} from "./UI/SearchAndGo"; import {CollapseButton} from "./UI/Base/CollapseButton"; import {AllKnownLayouts} from "./Customizations/AllKnownLayouts"; + + + +// --------------------- Read the URL parameters ----------------- + +if(location.href.startsWith("http://buurtnatuur.be")){ + // Reload the https version. This is important for the 'locate me' button + window.location.replace("https://buurtnatuur.be"); +} + + let dryRun = false; if (location.hostname === "localhost" || location.hostname === "127.0.0.1") { @@ -34,7 +45,6 @@ if (location.hostname === "localhost" || location.hostname === "127.0.0.1") { } - // ----------------- SELECT THE RIGHT QUESTSET -----------------