Hidden domains are used for URL generation if admPanel showHiddenRecords is activated
2 page trees with domains: a.example.com, b.example.com (both disabled/hidden)
Admin Panel is activated and
admPanel.override.preview.showHiddenRecords is set.
Link across domains is activated in TS.
config.typolinkEnableLinksAcrossDomains = 1
On page 123 in tree A a link to a page 456 on tree B is created.
Visit page 123 via another domain (eg localhost) and check the URL generated for the link to page 456.
The URL should be with the domain used to access 123 (since no domain record is enabled)
The URL is generated with domain b.example.com
The bug has been introduced with #77400. The migration of the former enableFields to doctrine's restrictions has not been done correctly.