- Issue created by @cgmonroe
- π§πͺBelgium chewi3
I had a similar issue after updates where direct file links in body texts were no longer tracked for usage through HtmlLink. After debugging this issue, it turned out that the public file regex pattern in PublicFileIntegration was changed as part of https://www.drupal.org/project/entity_usage/issues/3514883 β and now no longer matches file paths like "/sites/default/files/imagename.jpeg".
I made a patch that re-adds the optional leading slash which was present in earlier versions. I also made sure we never get a double trailing slash. (which I got at one point during testing).
This new pattern should now handle both external and local file systems.