When using Views' caching mechanism, the view title will not be changed correctly when viewing a saved view and getting a cache hit. The reason is that the code to set the title is currently located in the area handler's render() method, which is skipped when Views' output caching is active and gets a cache hit.

Instead, we should have this code in a hook_views_post_render() implementation, which will also run for Views output retrieved from cache.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drunken monkey created an issue. See original summary.

drunken monkey’s picture

Status: Active » Needs review
FileSize
1.27 KB

This should do it.

drunken monkey’s picture

Oops, left some unnecessary code while copy-pasting.

drunken monkey’s picture

Status: Needs review » Fixed

Committed.

  • drunken monkey committed 7627c26 on 7.x-1.x
    Issue #2833385 by drunken monkey: Fixed page title for cached views.
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.