Merge branch 'release-0.8'
[Sone.git] / src / main / java / net / pterodactylus / sone / template / AlbumAccessor.java
index 5042995..2c0a00e 100644 (file)
@@ -46,10 +46,10 @@ public class AlbumAccessor extends ReflectionAccessor {
                        List<Map<String, String>> backlinks = new ArrayList<Map<String, String>>();
                        Album currentAlbum = album;
                        while (currentAlbum != null) {
-                               backlinks.add(0, createLink("imageBrowser.html?album=" + album.getId(), album.getName()));
+                               backlinks.add(0, createLink("imageBrowser.html?album=" + currentAlbum.getId(), currentAlbum.getTitle()));
                                currentAlbum = currentAlbum.getParent();
                        }
-                       backlinks.add(0, createLink("viewSone.html?sone=" + album.getSone().getId(), SoneAccessor.getNiceName(album.getSone())));
+                       backlinks.add(0, createLink("imageBrowser.html?sone=" + album.getSone().getId(), SoneAccessor.getNiceName(album.getSone())));
                        return backlinks;
                }
                return super.get(templateContext, object, member);