added support for default alias specification, alias auto registration, alias redirect, alias line break delimiters
This commit is contained in:
@ -30,6 +30,11 @@ namespace Oqtane.Models
|
||||
/// </summary>
|
||||
public int SiteId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Specifies if the alias is the default for the tenant/site. Requests for non-default aliases are redirected to the default alias.
|
||||
/// </summary>
|
||||
public bool IsDefault { get; set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public string CreatedBy { get; set; }
|
||||
|
||||
@ -62,5 +67,6 @@ namespace Oqtane.Models
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace Oqtane.Models
|
||||
Action = "";
|
||||
UrlParameters = "";
|
||||
|
||||
if (AliasPath.Length != 0)
|
||||
if (AliasPath.Length != 0 && PagePath.StartsWith("/" + AliasPath))
|
||||
{
|
||||
PagePath = PagePath.Substring(AliasPath.Length + 1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user