Problem/Motivation
We are altering a view using hook_views_pre_view to override a view title using contextual filters and some custom logic. This is fired from ViewExecutable::preExecute. Because that hook doesn't get triggered by the metatag module we are getting inconsistent results when trying to generate a metatag title from the contextual filter values.
Steps to reproduce
Override a view title using contextual filters. Alter those contextual filters using hook_views_pre_view and then notice that when generating metatags the contextual filters are not altered.
Proposed resolution
Call ViewExecutable::preExecute
Remaining tasks
N/A
User interface changes
N/A
API changes
N/A
Data model changes
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3308774_2.patch | 462 bytes | achap |
Comments
Comment #2
achapComment #3
damienmckennaThank you for the feature request and providing a patch. I'll take a look at it shortly.
One thing to note - the "assigned" field is for indicating that you're actively working on something, so after uploading the patch please try to remember to change it to "unassigned". Thank you.
Comment #6
damienmckennaCommitted. Thank you.