From f1aa80b6063c86da112fed88b8a4d425c62595d0 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Mon, 25 Mar 2024 10:14:39 -0700 Subject: [PATCH] fix: paths --- package.json | 2 +- src/_includes/base.liquid | 2 +- src/assets/scripts/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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}`