Skip to content

Custom routing: page parameter gets wiped out #5685

Closed Answered by roxeteer
roxeteer asked this question in Q&A
Discussion options

You must be logged in to vote

I created a codesandbox and it worked fine there, so I'm not linking to it. What I realized was that I'm running the search React app as a custom block inside WordPress, and it's the WP that removes the query param. WP uses ?page= for it's own blog post pagination and since there is no need for pagination on that page, it removes the parameter. I have to try and figure out if there's a way to retain "reserved" parameters in WP.

Thanks for your help anyway!

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Haroenv
Comment options

@roxeteer
Comment options

@roxeteer
Comment options

Answer selected by roxeteer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Library: React InstantSearch ≥ 7 Issues in any of the react-instantsearch@7 packages (formerly named react-instantsearch-hooks)
2 participants