mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-07 13:55:03 +02:00
fixes #1573 edit btn in results of album search redirects to right album
This commit is contained in:
@@ -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>';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user