diff --git a/templates/functionality.js b/templates/functionality.js index 67d60bf..a2708b1 100644 --- a/templates/functionality.js +++ b/templates/functionality.js @@ -195,7 +195,7 @@ class PhotoGallery { filter() { this.shown = []; const path = decodeURIComponent( - window.location.origin.replace("index.html", "") + window.location.origin + window.location.pathname.replace("index.html", "") ); const selectedTags = [];