Skip to content

ReactRouter extension method doesn't include "?" character for query string on .NET Framework #1270

@rshackleton

Description

@rshackleton

Thanks for filing a bug! To save time, if you're having trouble using the library, please check off the items you have tried. If you are just asking a question, skip right to the bottom.

Please verify these steps before filing an issue, and check them off as you go

  • The relevant native JavascriptEngineSwitcher library packages are installed (such as JavaScriptEngineSwitcher.V8.Native.win-x64)
  • The VC++ 2017 runtime is installed
  • The value of SetUseReact and SetUseBabel is correct in ReactConfig.cs or Startup.cs
  • I've looked at the sample projects in this repo to verify that my app is configured correctly

I'm using these library versions:

  • ReactJS.NET: 5.2.11
  • JavaScriptEngineSwitcher: 3.3.0
  • react and react-dom: (N/A if using bundled react, or version number) 17.0.2
  • webpack: (N/A if using bundled react) 4.44.1
  • node: (N/A if using bundled react) 14.16.0

Runtime environment:

  • OS: Windows 11 64-bit
  • .NET Framework or .NET Core Version: .NET Framework 4.7.2

Steps to reproduce

The query string passed to the component when server-side rendering via the ReactRouter extension doesn't include a "?" character when run under .NET Framework whereas on .NET Core it does include it. This results in the path not including a valid query string, for example /newspageIndex=1 rather than /news?pageIndex=1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions