Redirect back to itself after editing an artist.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 26 Jul 2012 12:12:35 +0000 (14:12 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 26 Jul 2012 12:12:35 +0000 (14:12 +0200)
src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditArtistPage.java

index ba36ff7..09ba5be 100644 (file)
@@ -101,7 +101,7 @@ public class EditArtistPage extends AdminBasePage {
                                }
 
                                getCore().getDataManager().saveArtist(artist);
-                               throw new RedirectException("admin.artists");
+                               throw new RedirectException("admin.edit-artist?id=" + artist.getId());
                        }
                } catch (DatabaseException de1) {
                        throw new RuntimeException("Could not load artist.", de1);