好记性不如烂笔头。

Umbraco Content 内置字段

umbracoInternalRedirectId  填写content nodeid,会重定向到此内容,网址不会变

umbracoRedirect 填写content nodeid,会重定向到此内容,网址会改变成填写的Node的网址

UmbracoUrlName 默认会把Content的Name当作Url,如果此字段填写了值,则将此替换成Name当作Url

umbracoUrlAlias URL别名,比如当前Url是 /aboutus,如果别名填写了about,则访问 /about跟访问/aboutus是一样的

public static class Content
{
/// <summary>
/// Property alias for the Content's Url (internal) redirect.
/// </summary>
public const string InternalRedirectId = "umbracoInternalRedirectId"; /// <summary>
/// Property alias for the Content's navigational hide, (not actually used in core code).
/// </summary>
public const string NaviHide = "umbracoNaviHide"; /// <summary>
/// Property alias for the Content's Url redirect.
/// </summary>
public const string Redirect = "umbracoRedirect"; /// <summary>
/// Property alias for the Content's Url alias.
/// </summary>
public const string UrlAlias = "umbracoUrlAlias"; /// <summary>
/// Property alias for the Content's Url name.
/// </summary>
public const string UrlName = "umbracoUrlName";
}