diff --git a/frontend/elements/photo-thumbnail.html b/frontend/elements/photo-thumbnail.html index 1cc9d00..a31a023 100755 --- a/frontend/elements/photo-thumbnail.html +++ b/frontend/elements/photo-thumbnail.html @@ -101,7 +101,7 @@ if (item === undefined|| base === undefined || item.path === undefined) { return ""; } - return base + item.path + "/thumbs/" + item.filename; + return base + item.path + "thumbs/" + item.filename; }, date: function(item) { @@ -124,9 +124,9 @@ attached: function() { var base = document.querySelector("base"); if (base) { - this.base = new URL(base.href).pathname.replace(/\/$/, ""); /* Remove trailing slash if there */ + this.base = new URL(base.href).pathname.replace(/\/$/, "") + "/"; /* Ensure trailing slash */ } else { - this.base = ""; + this.base = "/"; } } }); diff --git a/frontend/src/ketr-photos/ketr-photos.html b/frontend/src/ketr-photos/ketr-photos.html index ede86f8..34b5552 100755 --- a/frontend/src/ketr-photos/ketr-photos.html +++ b/frontend/src/ketr-photos/ketr-photos.html @@ -32,7 +32,6 @@ - @@ -382,7 +381,8 @@ - +