Skip to content
Discussion options

You must be logged in to vote

I've ran into this a few times, basically each form just replaces the url params with it's own search params. To keep both you need to add hidden inputs to each form with all the search params you want to keep:

// In the filters
<input type="hidden" name="search" value={params.get("search")} />

So when you submit this form it will also "keep" the "search" search param, by also submitting it.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@coderkk1992
Comment options

@JClackett
Comment options

@coderkk1992
Comment options

@coderkk1992
Comment options

Answer selected by machour
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants