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 d6ff200 commit b62e50bCopy full SHA for b62e50b
src/React.Router/HtmlHelperExtensions.cs
@@ -101,7 +101,8 @@ public static IHtmlString ReactRouter<T>(
101
try
102
{
103
var response = htmlHelper.ViewContext.HttpContext.Response;
104
- path = path ?? htmlHelper.ViewContext.HttpContext.Request.Path;
+ var request = htmlHelper.ViewContext.HttpContext.Request;
105
+ path = path ?? request.Path.ToString() + request.QueryString;
106
107
var reactComponent
108
= Environment.CreateRouterComponent(
0 commit comments