Redirect back to index after the profile has been saved.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 18 Oct 2010 06:39:33 +0000 (08:39 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 18 Oct 2010 06:39:33 +0000 (08:39 +0200)
src/main/java/net/pterodactylus/sone/web/EditProfilePage.java

index a646746..181c454 100644 (file)
@@ -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);