From 23e8be6232bb27bfb00e87d8c60c590bbed80177 Mon Sep 17 00:00:00 2001
From: Dominik Hebeler <dominik@suma-ev.de>
Date: Mon, 15 Jul 2024 16:45:03 +0200
Subject: [PATCH] remove locale from urls

---
 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 5a9df338e..96f2be88b 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.href;
+            params.url = document.location.protocol + "//" + document.location.pathname.replace(/^\/[a-z]{2}-[A-Z]{2}/, "") + document.location.search + document.location.hash;
         } catch (error) { }
 
         // Page Title
-- 
GitLab