Problem/Motivation
The local tasks (specifically the 'View' link) associated with an entity do not update immediately when its URL alias is modified. To reflect the changes, the Drupal cache must be cleared. Without clearing the cache, the 'View' link points to the old alias which results in "page not found" error.
Debugging showed that cache tags of an entity are not incuded in local tasks.
Steps to reproduce
- Install with standard profile
- create an aricle, Give URL alias and save.
- Edit the created article, Change the URL alias and save.
- No click on 'View' link from the local tasks.
- 'View' link leads to 404 as it is still using old alias.
- Clear Drupal cache and try again.
- 'View' link points to the new alias.
Taxonomy term also show similer behaviour
Proposed resolution
The cache tags associated with an entity should be linked to it's local task block.
Remaining tasks
None
User interface changes
NA
API changes
NA
Data model changes
NA
Release notes snippet
NA