Rename udi to id in EntityController.GetUrl

This commit is contained in:
Mole
2021-07-22 11:10:02 +02:00
parent 32e11ec8dc
commit 615008c0ab
2 changed files with 5 additions and 5 deletions

View File

@@ -258,16 +258,16 @@ namespace Umbraco.Cms.Web.BackOffice.Controllers
/// <summary>
/// Gets the URL of an entity
/// </summary>
/// <param name="udi">UDI of the entity to fetch URL for</param>
/// <param name="id">UDI of the entity to fetch URL for</param>
/// <param name="culture">The culture to fetch the URL for</param>
/// <returns>The URL or path to the item</returns>
public IActionResult GetUrl(Udi udi, string culture = "*")
public IActionResult GetUrl(Udi id, string culture = "*")
{
var intId = _entityService.GetId(udi);
var intId = _entityService.GetId(id);
if (!intId.Success)
return NotFound();
UmbracoEntityTypes entityType;
switch (udi.EntityType)
switch (id.EntityType)
{
case Constants.UdiEntityType.Document:
entityType = UmbracoEntityTypes.Document;