cc-archive / open-ledger

Prototype code and examples for work on the Creative Commons "CC Search" project
MIT License
48 stars 23 forks source link

Allow direct link to any form field so that providers can have direct links with some values pre-filled #137

Closed lizadaly closed 7 years ago

lizadaly commented 7 years ago

Right now, the search form is required to be fully filled out such that trying to pass just a partial set of params is invisibly returning an error and resetting the form. For example:

https://ccsearch.creativecommons.org/?search=cat&search_fields=title&search_fields=tags&providers=500px

Shows only 500px results, as expected, but omitting the search query resets the form:

https://ccsearch.creativecommons.org/?search_fields=title&search_fields=tags&providers=500px

If "search" is blank, we should still allow the form to be preset by the query params.

lizadaly commented 7 years ago

This now works as it should.