mysociety / contract-countdown

https://mysociety.github.io/contract-countdown/
0 stars 0 forks source link

Added searching by council to home page search box #43

Closed alexander-griffen closed 1 year ago

alexander-griffen commented 1 year ago

Fixes #36

Previously, if you entered a council name in the search box (rather than clicking the autocomplete), it wouldn't work as it only filtered by postcodes. This has now been rectified.

Additionally, any links to a council (from contract detail pages, as well as the clickable autocomplete) now direct to the home page with the council pre-filtered, and the separate url pattern for the council page has been removed (to reduce redundancy).

The searching by council searches for a case-insensitive exact version of the council - it could use case insensitive contains lookup instead, but I wasn't sure if this could add more complications rather than fewer, especially given the autocomplete.