From f1cf4fe2d86bbbe180eb6db8a7b3adcc8c6dc142 Mon Sep 17 00:00:00 2001 From: Dominik Hebeler <dominik@suma-ev.de> Date: Mon, 15 Jul 2024 17:02:35 +0200 Subject: [PATCH] add back hostname --- metager/resources/js/statistics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metager/resources/js/statistics.js b/metager/resources/js/statistics.js index 96f2be88b..4b2f8df60 100644 --- a/metager/resources/js/statistics.js +++ b/metager/resources/js/statistics.js @@ -74,7 +74,7 @@ class Statistics { // Page URL try { - params.url = document.location.protocol + "//" + document.location.pathname.replace(/^\/[a-z]{2}-[A-Z]{2}/, "") + document.location.search + document.location.hash; + params.url = document.location.protocol + "//" + document.location.host + document.location.pathname.replace(/^\/[a-z]{2}-[A-Z]{2}/, "") + document.location.search + document.location.hash; } catch (error) { } // Page Title -- GitLab