datamade / django-councilmatic

:heartpulse: Django app providing core functions for *.councilmatic.org
http://councilmatic.org
MIT License
26 stars 16 forks source link

links in list of leg types on templates/partials/component_bill_type_table.html don't return results #93

Closed hancush closed 7 years ago

hancush commented 7 years ago

see line 13: <a href="/search/?q=&selected_facets=bill_type_exact:{{leg_type.search_term}}">

resulting url has search_term in title case, i.e. /search/?q=&selected_facets=bill_type_exact:Mayor%27s%20Message; search terms should be lowercase. either tack on .lower in template or wherever search_term comes from? (i don't see it referenced anywhere else, template fix may suffice?)

reginafcompton commented 7 years ago

Fixed....needed to update link itself. Also, in settings_jurisdiciton.py, the "search_term" for LEGISLATION_TYPE_DESCRIPTIONS needs to be lowercase. Changes for this made in LA Metro. Will open new issue for Chicago and NYC.