thanks @freakboy3742 for the catch and review
Fixes #19042
Thanks to baumer1122 for the suggestion and initial patch and David Fischer for the contributions and long term patch maintenance and docs.