Skip to content

Commit 6074daa

Browse files
committed
Fixes: #9468
1 parent 10d70c5 commit 6074daa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Mvc/Mvc.RazorPages/src/Infrastructure/DynamicPageEndpointMatcherPolicy.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ public async Task ApplyAsync(HttpContext httpContext, EndpointSelectorContext co
107107
"{ " + string.Join(", ", metadata.Values.Select(kvp => $"{kvp.Key}: {kvp.Value}")) + " }.");
108108
}
109109

110-
// It should not be possible to have more than one result for pages.
111-
Debug.Assert(endpoints.Count == 1);
110+
// It is possible to have more than one result for pages but they are equivalent.
112111

113112
var compiled = await _loader.LoadAsync(endpoints[0].Metadata.GetMetadata<PageActionDescriptor>());
114113
var replacement = compiled.Endpoint;

0 commit comments

Comments
 (0)