Handle route data

This commit is contained in:
Mole
2021-02-01 13:35:19 +01:00
parent d52c084e3b
commit 708b7a5430

View File

@@ -110,6 +110,11 @@ namespace Umbraco.Web.BackOffice.Controllers
requestParam = stringValues.ToString();
}
if (requestParam is null && context.RouteContext.RouteData.Values.TryGetValue(_parameterName, out var value))
{
requestParam = value?.ToString();
}
if (requestParam == string.Empty && _supportedTypes.Length > 0)
{
// if it's empty then in theory we can select any of the actions since they'll all need to deal with empty or null parameters