Create correct backlink for a Sone’s image browser.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 22 Mar 2011 19:44:28 +0000 (20:44 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 22 Mar 2011 19:44:28 +0000 (20:44 +0100)
src/main/java/net/pterodactylus/sone/template/AlbumAccessor.java

index 5042995..0eea231 100644 (file)
@@ -49,7 +49,7 @@ public class AlbumAccessor extends ReflectionAccessor {
                                backlinks.add(0, createLink("imageBrowser.html?album=" + album.getId(), album.getName()));
                                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);