Skip to content

Commit

Permalink
Fixes #1775 from LycheeOrg (LycheeOrg#402)
Browse files Browse the repository at this point in the history
albumID is not urldecoded which results to a fail when checking against album.json.id === albumID. This is fixed here by urlencoding.
  • Loading branch information
ThanasisMpalatsoukas committed Jun 21, 2023
1 parent 5207d16 commit 3f6cdb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/main/lychee.js
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ lychee.load = function (autoplay = true) {
} else {
albumID = hashMatch[0];
if (albumID === SearchAlbumIDPrefix && hashMatch.length > 1) {
albumID += "/" + hashMatch[1];
albumID += "/" + decodeURIComponent(hashMatch[1]);
}
photoID = hashMatch[album.isSearchID(albumID) ? 2 : 1];
}
Expand Down

0 comments on commit 3f6cdb1

Please sign in to comment.