InfoCommons / cic

Apache License 2.0
0 stars 0 forks source link

Allow search page to take a URL parameter to initialize the search #177

Closed ryscher closed 1 year ago

ryscher commented 2 years ago

We want our search page to be called from other locations (primarily the Drupal CIC site). An external form should be able to set a URL parameter that is sent to the new form, like /grants?query=pandemic. The value of the parameter should be treated as if it were typed into the main search field.

sg3847 commented 2 years ago

@ryscher We also want the query parameter value (if any) to populate the search input box, right?

ryscher commented 2 years ago

@sg3847 Yes, please!

ryscher commented 2 years ago

@sg3847 Minor update due to my mistake: please change the name of the parameter from query to keywords. The Drupal site uses keywords in a way that is not easy to change.

sg3847 commented 2 years ago

Done