I need to use the following path in React Router
http://localhost:3000/testgroup/test/callback/?code=2d54b51d
I'm using the following code to declare the path but its not working. Any idea on how to use this? It works on callback/:code but my callback url comes in the above format from the source. Also, how do I extract the code from the url in react router. Please note, I'm using the older version as the current application is in the older version.
<TestRoute
// authenticated={true}
path={`${userRoute}/test/callback/?code=:code`}
component={CallBackHandler}
history={history}
/>