Replace file
1 unresolved thread
1 unresolved thread
Closes #2648816
Merge request reports
Activity
added 1 commit
- 138c89ae - Issue 2648816: Cleaning up and resolving accessibility review issue
97 97 // Add support to link to the entity itself. 98 98 if ($this->getSetting('link_to_file')) { 99 99 $url = $this->fileUrlGenerator->generate($items->getEntity()->getFileUri()); 100 $url->setOptions(['query' => ['changed' => $items->getEntity()->getChangedTime()]]); This was done to fix the caching issue reported in #93
This only covers the base field formatter, which is used when the file entity itself is rendered. It doesn't work when for example displaying the file download link through a media entity. For that we'd need to update those formatters too.
It's a similar solution as used by crop module for possibly changing crop/focal point settings on an image style and makes sense. I wonder if we could do this only if created and changed time is different?
- Resolved by Adam Bramley
added 194 commits
-
01a319f9...2fddf325 - 193 commits from branch
project:11.x
- 563c804a - Merge branch drupal:11.x into 2648816-uploaded-files-are
-
01a319f9...2fddf325 - 193 commits from branch
Please register or sign in to reply