Lets say the current page a user is on is:
http://0.0.0.0:3000/posts?direction=asc&sort=title
Its sorted ascending, by title.
Now lets say I have a search engine, that if you searched for "chicken" for example, the url might be:
http://0.0.0.0:3000/posts?direction=asc&search=chicken&sort=title
But instead of searching, I'd like to make a link such as <a href="CODE HERE">Show all results for chicken</a>
which appends &search=chicken to url, or if search already has a value, replaces it.
Is this possible?