From: David ‘Bombe’ Roden Date: Thu, 26 Jul 2012 12:12:35 +0000 (+0200) Subject: Redirect back to itself after editing an artist. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c115c68b823e9e6b314715aa7b46bf0c7a207dbd;p=demoscenemusic.git Redirect back to itself after editing an artist. --- diff --git a/src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditArtistPage.java b/src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditArtistPage.java index ba36ff7..09ba5be 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditArtistPage.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditArtistPage.java @@ -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);