Add overload for NiceUrl

This commit is contained in:
Bjarne Fyrstenborg
2019-07-13 16:40:01 +02:00
parent de9241bcf5
commit c47a08b553

View File

@@ -492,6 +492,18 @@ namespace Umbraco.Web
return Url(nodeId);
}
/// <summary>
/// Returns a string with a friendly url from a node.
/// IE.: Instead of having /482 (id) as an url, you can have
/// /screenshots/developer/macros (spoken url)
/// </summary>
/// <param name="guid">Identifier for the node that should be returned</param>
/// <returns>String with a friendly url from a node</returns>
public string NiceUrl(Guid guid)
{
return Url(guid);
}
/// <summary>
/// Gets the url of a content identified by its identifier.
/// </summary>