diff --git a/frontend/src/ketr-photos/ketr-photos.html b/frontend/src/ketr-photos/ketr-photos.html index f6f32d5..dd4fd8c 100755 --- a/frontend/src/ketr-photos/ketr-photos.html +++ b/frontend/src/ketr-photos/ketr-photos.html @@ -700,6 +700,7 @@ window.fetch("api/v1/albums" + (this.path || ""), function(error, xhr) { this.loadingAlbums = false; if (error) { + console.log("Error loading album: " + (this.path || "")); console.error(JSON.stringify(error, null, 2)); return; } diff --git a/server/routes/albums.js b/server/routes/albums.js index f39472d..d99d8f1 100644 --- a/server/routes/albums.js +++ b/server/routes/albums.js @@ -18,10 +18,6 @@ router.get("/*", function(req, res/*, next*/) { let url = decodeURI(req.url).replace(/\?.*$/, ""), query = "SELECT * FROM albums WHERE path=:path"; - if (url == "/") { - url = ""; - } - return photoDB.sequelize.query(query, { replacements: { path: url