Go back to the profile after saving.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 14 Jan 2011 11:38:51 +0000 (12:38 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 14 Jan 2011 11:38:51 +0000 (12:38 +0100)
src/main/java/net/pterodactylus/sone/web/EditProfilePage.java

index fc1a0bb..98bc49f 100644 (file)
@@ -84,7 +84,7 @@ public class EditProfilePage extends SoneTemplatePage {
                                }
                                currentSone.setProfile(profile);
                                webInterface.getCore().saveSone(currentSone);
-                               throw new RedirectException("index.html");
+                               throw new RedirectException("editProfile.html");
                        } else if (request.getHttpRequest().getPartAsStringFailsafe("add-field", 4).equals("true")) {
                                String fieldName = request.getHttpRequest().getPartAsStringFailsafe("field-name", 256).trim();
                                try {