I have created a pretty standard view of articles, and it has a contextual filter based on a taxonomy term id in the URL. The view is being displayed in a block.

The view works perfectly, and the filter works as expected. In the settings of the contextual filter, under "When the filter value IS available or a default is provided", I've ticked "Override title". It has a value of "Latest {{ arguments.tid }} News & Projects". (see screenshot).

When I Preview with contextual filters and supply a value of 1, the title changes as expected. (see screenshot)

However, the block's title isn't being changed when I look at the block itself. The contextual filter is working and filtering the articles that are being displayed; its just the title that isn't changing. I switched to core's Bartik theme to make sure it wasn't my theme causing the issue, but that didn't solve it. (see screenshot)

I'm not overriding the block's title.

Additional info: I have a very similar view somewhere else on the site being displayed as a page (not in a block) also with a contextual filter, and there the title gets changed as expected.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

droces created an issue. See original summary.

droces’s picture

Issue summary: View changes
Lendude’s picture

Project: Views (for Drupal 7) » Drupal core
Version: 8.x-3.x-dev » 8.3.x-dev
Component: Miscellaneous » views.module
Status: Needs work » Closed (duplicate)

Moving to the right queue and closing as a duplicate of #2773071: Override title when filter is available does not show new title

Lendude’s picture