Apply suggestions from code review

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
Shannon Deminick
2021-02-05 12:32:09 +11:00
committed by GitHub
parent eed8e4dca8
commit 7aff288ff1
3 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ namespace Umbraco.Web.Common.Extensions
pattern.Append('/').Append(controllerName);
}
pattern.Append('/').Append("{action}/{id?}");
pattern.Append("/{action}/{id?}");
var defaults = defaultAction.IsNullOrWhiteSpace()
? (object)new { controller = controllerName }