From b5248046591eadcae84a8820a801b2b6839214a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Kr=C3=B3l?= Date: Mon, 19 Dec 2022 12:40:52 +0100 Subject: [PATCH] dasharo/assets/js/cookies.js: fix location of policy page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Piotr Król --- themes/dasharo/assets/js/cookies.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/themes/dasharo/assets/js/cookies.js b/themes/dasharo/assets/js/cookies.js index 80d0532..5b900d1 100644 --- a/themes/dasharo/assets/js/cookies.js +++ b/themes/dasharo/assets/js/cookies.js @@ -1,8 +1,7 @@ const cookiesInitialize = function () { const container = document.createElement("div"); const link = document.createElement("strong"); - const hrefContent = - window.location.href.indexOf("pages") != -1 ? "./policy" : "./pages/policy"; + const hrefContent = window.location.origin + "/pages/policy"; container.id = "cookies_info"; container.innerHTML =