#83835Linkvalidator should check more fields by default, such as sys_file_reference.link
Description
Tested (25.03.2024): should just work if added to the searchFields (with TYPO3 v12 and v13):
mod.linkvalidator.serachFields.sys_file_reference = link
Since TYPO3 v12, linkvalidator also checks fields if type = “link”.
————
Reproduce
1. Change default page TSconfig for linkvalidator to include sys_file_reference:
mod.linkvalidator {
searchFields {
pages = media,url
tt_content = bodytext,header_link,records
sys_file_reference = link
}
...
}
2. Create a “text & images” or “text & media”, add an image, add a dead (not existing link) in the “Link” field for the image metadata.
linkval4.png
3. Restart “Check link”, the dead link should now appear in the Reports
Results
Clicking the pen will jump to the edit wizard for sys_file_reference, but you can’t change the link there, you need the edit wizard for tt_content.
!linkval1.png!
linkval2.png
So, Linkvalidator does not properly handle sys_file_reference records (and probably wasn’t intended to because it was developed before FAL).
Reviews 8
- 13.4 88295[DOCS] Additional check fields in Link Validator manual
- main 88243[DOCS] Additional check fields in Link Validator manual
- main 83612[FEATURE] Check more fields by default in Link Validator
- 11.5 84829[BUGFIX] Fix array access error in EditableRestriction
- 12.4 84828[BUGFIX] Fix array access error in EditableRestriction
- main 83698[BUGFIX] Fix array access error in EditableRestriction
- 12.4 83955[DOCS] Fix explanation of searchFields for linkvalidator
- main 83584[DOCS] Fix explanation of searchFields for linkvalidator
Related issues 6
- Feature #89177Change TsConfig Defaults of Linkvalidator and Enable all core fields containing links
- Bug #90760Link validator throws exception with Page TSConfig configuration on sys_file_reference
- Task #103477Documentation for Link Validator searchFields says it is only possible to check fields with a defined "softref"
- Feature #103478Linkvalidator should check fields with type "file"
- Bug #103494Linkvalidator uses tstamp field directly without checking TCA in recheckLinks
- Bug #103559Opening broken link list as non-admin user throws exception if searchFields.sys_file_reference = link is set