From: David ‘Bombe’ Roden Date: Mon, 18 Oct 2010 06:39:33 +0000 (+0200) Subject: Redirect back to index after the profile has been saved. X-Git-Tag: 0.1-RC1~256 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=08ea47f96c1e0a5afa203db78ea2afeaaaea5d49;p=Sone.git Redirect back to index after the profile has been saved. --- diff --git a/src/main/java/net/pterodactylus/sone/web/EditProfilePage.java b/src/main/java/net/pterodactylus/sone/web/EditProfilePage.java index a646746..181c454 100644 --- a/src/main/java/net/pterodactylus/sone/web/EditProfilePage.java +++ b/src/main/java/net/pterodactylus/sone/web/EditProfilePage.java @@ -68,7 +68,7 @@ public class EditProfilePage extends SoneTemplatePage { if (profile.isModified()) { currentSone.setProfile(profile); } - template.set("changed", true); + throw new RedirectException("index.html"); } template.set("firstName", firstName); template.set("middleName", middleName);