diff --git a/assets/js/page.js b/assets/js/page.js index e5772d2..2b35e4a 100644 --- a/assets/js/page.js +++ b/assets/js/page.js @@ -48,4 +48,7 @@ function initExternalLinks() { }) } -const isExternalURL = (url) => new URL(url).origin !== location.origin; \ No newline at end of file +const isExternalURL = (url) => { + if(url.startsWith('/')) return false; + return new URL(url).origin !== location.origin; +} \ No newline at end of file