Issue Bug Closed

#62080$GLOBALS['TSFE']->page['title'] in USER doesn't work anymore for cached pages

Julian Klassen 10/07/14, 13:42 updated 10/02/18, 11:51

Description

Since commit 1263413f305a459080b895f762740bbfaeaca686 which fixed issue #54467, you can’t correctly set the page title in a USER plugin anymore. The new call to regeneratePageTitle() unconditionally sets the page title based on the values of $TSFE->altPageTitle / page['title'] at the time of the request.

If the page title gets set from a USER plugin, those values are only correctly set for requests that aren’t answered from the cache. All later requests that are answered from the cache don’t execute the USER plugin, and therefore the new call to regenerateTitle() sets the page title to its “regular” value, overriding the value initially set by the USER plugin.

Reviews 2