Thanks for the report @john.sanchirico, and also @simon for the detailed analysis
This will be fixed by
https://github.com/discourse/discourse/pull/23741