fixes #1573 edit btn in results of album search redirects to right album

This commit is contained in:
Matthieu Leproux
2021-11-29 13:34:06 +01:00
parent ce7de25f77
commit efd0d06e47
+3 -3
View File
@@ -111,9 +111,9 @@ function addAlbumResult (cat, nbResult) {
function getHtmlPath (cat) { function getHtmlPath (cat) {
html = ''; html = '';
for (let i = 0; i < cat[1].length - 1; i++) { for (let i = 0; i < cat[1].length - 1; i++) {
id = cat[1][i]; id_bis = cat[1][i];
c = data[id]; c = data[id_bis];
html += '<a href="' + editLink + id + '">' + c[0] + '</a> <b>/</b> ' html += '<a href="' + editLink + id_bis + '">' + c[0] + '</a> <b>/</b> '
} }
html += '<a href="' + editLink + cat[1][cat[1].length - 1] + '">' + cat[0] + '</a>'; html += '<a href="' + editLink + cat[1][cat[1].length - 1] + '">' + cat[0] + '</a>';