From: David ‘Bombe’ Roden Date: Fri, 14 Jan 2011 11:38:51 +0000 (+0100) Subject: Go back to the profile after saving. X-Git-Tag: 0.4^2~9^2~26 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=cc0576f6c8c8ec7941fdcd2e6f4e78a61e14afa4;p=Sone.git Go back to the profile after saving. --- diff --git a/src/main/java/net/pterodactylus/sone/web/EditProfilePage.java b/src/main/java/net/pterodactylus/sone/web/EditProfilePage.java index fc1a0bb..98bc49f 100644 --- a/src/main/java/net/pterodactylus/sone/web/EditProfilePage.java +++ b/src/main/java/net/pterodactylus/sone/web/EditProfilePage.java @@ -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 {