reactjs – Two routes with different query strings for the same component

I have created two Route for the same component called UploadShip:



Within UploadShip component, I want to show Add or Edit form for the user when verifying returned query strings, such as props.match.params.reviewRound.

However the path established in the Route Somehow it is problematic, because when you navigate to the url student / upload-send? submitId = 1, the component does not load.

I'm not sure how to approach this problem. Any ideas?