Linked files are no longer tracked

Created on 28 April 2025, 16 days ago

Problem/Motivation

Local files linked in HTML (and possibly other references) are not being tracked since the release of beta 24.

Specifically, this commit altered the public file pattern in a way that seems to be incompatible with local file systems. For example, what used to be {^/?sites/default/files/} is now {^/sites/default/files//}. The double slash at the end results in no matching in the getFileFromPath method.

https://git.drupalcode.org/project/entity_usage/-/commit/571be2c4ff7add4...

Steps to reproduce

Track HTML links and insert a link to a public file into a text field on a node. Saving the node does not save any tracking for the target file.

Proposed resolution

Revert the commit in question while a new approach, with better test coverage, is added.

Remaining tasks

TBD

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States john.oltman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024