diff --git a/js/gallery.js b/js/gallery.js index 44779f18b0..a5509c47ab 100644 --- a/js/gallery.js +++ b/js/gallery.js @@ -93,7 +93,9 @@ }, function (xhr) { var result = xhr.responseJSON; - Gallery.view.init(decodeURIComponent(currentLocation), result.message); + var albumPath = decodeURIComponent(currentLocation); + Gallery.view.init(albumPath, result.message); + Gallery._mapStructure(albumPath); }); },