Dealing with react-router not working as intended
-
Hello, so i have a url/slug for the react-page which uses reactPress. What i want to be able to do is navigate through this url/slug/:another-slug, the another-slug can be anything and than catch that value in the react component. I am able to get this behaviour for routes using react-router but i think, reactPress or wordpress (not sure what is causing this) tries to find the another-slug as a file in the slug folder(which of course doesn’t exists because this slug could be anything that user types in) and gives a 404 error. I wanted to know if there’s a workaround to this problem or not. Thank you!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Dealing with react-router not working as intended’ is closed to new replies.