We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A set of routes with different subroutes after a parameter overwrite previous routes causing mismatch.
In the BlazorRouteTests amend the code for MatchesTemplateWithParameters as follows:
BlazorRouteTests
MatchesTemplateWithParameters
[Fact] public void MatchesTemplateWithParameters() { string[] templates = { "/Cats/{id}/Breed", "/Cats/{id}", "/Cats/{id}/Owner", }; var target = new BlazorRoutes(templates); Assert.True(target.Contains("cats/42")); Assert.True(target.Contains("cats/42/owner")); Assert.True(target.Contains("cats/42/breed")); }
The first two tests pass but the second fails, because the last parameter route (owner) overwrites the prior one.
The text was updated successfully, but these errors were encountered:
Seems to be a logic error in RoutePart.cs when adding routes..
RoutePart.cs
Sorry, something went wrong.
No branches or pull requests
A set of routes with different subroutes after a parameter overwrite previous routes causing mismatch.
In the
BlazorRouteTests
amend the code forMatchesTemplateWithParameters
as follows:The first two tests pass but the second fails, because the last parameter route (owner) overwrites the prior one.
The text was updated successfully, but these errors were encountered: