Skip to content

Fixed asset usage detection for additional storage formats#3

Merged
kevinmeijer97 merged 2 commits into
masterfrom
feature/unused-assets-fix
Jun 22, 2026
Merged

Fixed asset usage detection for additional storage formats#3
kevinmeijer97 merged 2 commits into
masterfrom
feature/unused-assets-fix

Conversation

@kevinmeijer97

Copy link
Copy Markdown
Member

The unused assets export was marking files as unused even when they were still referenced in content, because Statamic stores assets in many formats and the scanner only handled a few.

The asset detection now also picks up plain filenames without a folder path, paths inside arrays, full URLs in Bard links (such as https://example.com/assets/file.pdf), and Statamic’s native asset:: and statamic://asset:: references. References are normalized and resolved via Asset::find() before being counted as used.

@kevinmeijer97 kevinmeijer97 merged commit 39cb4bf into master Jun 22, 2026
32 checks passed
@kevinmeijer97 kevinmeijer97 deleted the feature/unused-assets-fix branch June 22, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants