I recently came across a situation with Drupal 8 that took me literal hours to figure out. I thought I would share it here, for anyone else who might have the same problem, as the solution at first seemed to have no relation to the problem at all. This works in Drupal 8.8.x, and will probably work in 9+ as well.
Custom Software and Support
From custom web sites to credit card processing. From HIPAA EDI transmissions to server maintenance. From Higher Education to Mom & Pop restaurants, and everything in between. All at a fair and affordable rate.
No job is too big or too small. Peacock Software has you covered!