I am trying to figure out how to update the default query string parameter name for the search query from “query” to anything else and I am having trouble with searching on page load breaking when supply the query string parameter.
Here is a fork of your v4 starter with the routing code stripped down to the essential parameters:
What are the necessary changes to make the routing work so that “query” can be updated to something else without it breaking the ability to navigate to the page with the query string parameter, and have it pass along that search input?
Here is my attempt, the search query string parameter updates, but if you load the page with a query parameter, it doesn’t pick up the search query:
Not sure what I am doing wrong…