Closed lizadaly closed 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.
This now works as it should.
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.