Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292064

Updates to an entity's URL alias do not reflect on the corresponding local tasks.

$
0
0

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.

https://www.drupal.org/files/issues/2024-01-25/local-task-cache-not-invalidated.gif

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


Viewing all articles
Browse latest Browse all 292064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>