karthikeyan raman
karthikeyan raman

Reputation: 1

react router query param string loads the default page '/'

enter image description here

I have a scenario need to load the component with a query parameter. if load flowPage/1234 the component loads correctly.

But if i load flowPage/1234/investigation its load a default page Note: 1234 is an queryparameter

Upvotes: 0

Views: 280

Answers (1)

imLohith
imLohith

Reputation: 229

As of my understanding, you are probably nesting the routes with path,url by react-router-dom. just simply remove the exact from route that serves all nested routes will does the trick.

Upvotes: 0

Related Questions