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:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user