Skip to content

Commit

Permalink
Fix #28
Browse files Browse the repository at this point in the history
  • Loading branch information
dmandrioli committed Jun 12, 2019
1 parent 0362f05 commit 653cbce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/main.js
Expand Up @@ -123,10 +123,10 @@ Meteor.methods({
};

if (pageIndex * pageLength + pageLength < images.length) {
res.nextPage = `/browse/${pageIndex + 1}/${pageLength}/` + encodeURIComponent(folder);
res.nextPage = `/browse/${pageIndex + 1}/${pageLength}/` + (encodeURIComponent(folder) || "");
}
if (pageIndex > 0) {
res.previousPage = `/browse/${pageIndex - 1}/${pageLength}/` + encodeURIComponent(folder);
res.previousPage = `/browse/${pageIndex - 1}/${pageLength}/` + (encodeURIComponent(folder) || "");
}

return res;
Expand Down

0 comments on commit 653cbce

Please sign in to comment.