diff --git a/metager/resources/js/statistics.js b/metager/resources/js/statistics.js index 96f2be88b8ac502a067098d7e360fe4b952adeaf..4b2f8df60f80003e83bbeb477b2ff6ee446aca87 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