In ASP.NET MVC, whenever you have a controller and an action in it, you could dynamically generate a link to it in a razor page like:
Url.Action("ProductController", "Index", new { id = "123" })
and this would return a string containing the path to that action with the specified route values:
/Product/123
Isn't there a similar method in Blazor where you could give it the component's name and route values:
Url.Component("ProductPage", new { id = "123" })
and get the path?
/Product/123