Hi, what is the correct way to update URL params upon submitting a form, please?
I have a search input field with standard submit button, that has phx-submit
binding. But I want pagination on the search results, too.
Generally one would probably go to /users/search-results
and then have prev/next live_patch
links there.
But what if I wanted to stay on the same page, and just update params like /users?search=john&page=1&per_page=10
? Therefore the whole thing working more like a text filter?
Basically, how do I get the value from form textfield into URL, please?
Thank you