We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0abd144 commit 544086eCopy full SHA for 544086e
src/BootstrapBlazor/Router/RouteTableFactory.cs
@@ -23,7 +23,8 @@ internal static class RouteTableFactory
23
public static RouteContext Create(IEnumerable<Assembly> assemblies, string url)
24
{
25
RefreshRouteTable(assemblies);
26
- if (url.IndexOf("?", StringComparison.OrdinalIgnoreCase) > 0) url = url[..url.IndexOf("?")];
+ var len = url.IndexOf("?", StringComparison.OrdinalIgnoreCase);
27
+ if (len > 0) url = url[..len];
28
var routeContext = new Microsoft.AspNetCore.Components.Routing.RouteContext(url);
29
Routes.Route(routeContext);
30
return new RouteContext()
0 commit comments