Updates the membership partial view templates to redirect to current page by default but allows this to be overridden. Creates a new RedirectToCurrentUmbracoUrl method which is slightly diff from RedirectToCurrentUmbracoPage since it doesn't care about the actual page item rendering, just the currently rendered URL which is useful if coming from a rewritten URL (which is what happens with public access rewrites)

This commit is contained in:
Shannon
2014-02-13 13:30:32 +11:00
parent 9827b40bea
commit f5ee02a3e9
11 changed files with 110 additions and 20 deletions

View File

@@ -10,7 +10,7 @@ using Umbraco.Web.Security;
namespace Umbraco.Web.Models
{
public class ProfileModel
public class ProfileModel : PostRedirectModel
{
public static ProfileModel CreateModel()
{
@@ -60,10 +60,5 @@ namespace Umbraco.Web.Models
/// </remarks>
public List<UmbracoProperty> MemberProperties { get; set; }
/// <summary>
/// The path to redirect to when update is successful, if not specified then the user will be
/// redirected to the current Umbraco page
/// </summary>
public string RedirectUrl { get; set; }
}
}