diff --git a/package.json b/package.json index 68db6378..4a13f5b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "8.7.5", + "version": "8.7.6", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": { diff --git a/src/_includes/base.liquid b/src/_includes/base.liquid index a8423dde..8a6859e9 100644 --- a/src/_includes/base.liquid +++ b/src/_includes/base.liquid @@ -90,7 +90,7 @@ {% endif %} diff --git a/src/assets/scripts/index.js b/src/assets/scripts/index.js index 2a071893..bc252acb 100644 --- a/src/assets/scripts/index.js +++ b/src/assets/scripts/index.js @@ -1,5 +1,5 @@ let ignore; -let url = `https://coryd.dev/api/event/?page=${encodeURIComponent(window.location.href)}&lang=${encodeURIComponent(navigator.language)}&nav=${encodeURIComponent(navigator.userAgent)}` +let url = `https://coryd.dev/api/event/?site=${encodeURIComponent(window.location.origin)}&page=${encodeURIComponent(window.location.pathname)}&lang=${encodeURIComponent(navigator.language)}&nav=${encodeURIComponent(navigator.userAgent)}` if (window.localStorage && window.localStorage.getItem('ignore')) { ignore = localStorage.getItem('ignore') url = `${url}&ignore=${ignore}`