From 08ea47f96c1e0a5afa203db78ea2afeaaaea5d49 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 18 Oct 2010 08:39:33 +0200 Subject: [PATCH] Redirect back to index after the profile has been saved. --- src/main/java/net/pterodactylus/sone/web/EditProfilePage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.7.4