I have succsefully managed to filter entries by matching an url segment to a Radio Buttons Field in my entries, like this: (here category is the field handle of my Radio Buttons field)
{% set filteredEntries = craft.entries.section('news').category(craft.request.getSegment(2)) %}
After having to change the Radio Buttons Field to a Checkboxes Field I tried adapting my code like this: (here category is the field handle of my Checkboxes Field)
{% set filteredEntries = craft.entries.section('news').category.contains(craft.request.getSegment(2)) %}
But it doesn't work. Any suggestions?