Can’t get query param in the React app
-
Hi Marco, thanks for the very useful plugin.
The problem I am facing is that I am not getting the query param in the react app.
The app works fine locally and visiting the URL:
http://localhost:3000/:postId(WherepostIdis a dynamic ID value of blogpost I want to see) loads correct blogpost.But when I add this in ReactPress inside WordPress, and I open a URL like:
https://mydomain.com/reactpressapp/:postId, then it doesn’t catch the value ofpostId. And actually it gives the value ofpostIdas reactpressapp i.e.postId === reactpressapp.Maybe, you can give me a hint why is this happening and how can I fix it?
Thanks!!!
The topic ‘Can’t get query param in the React app’ is closed to new replies.