President’s religious oath a violation of equal rights

The religious oath required of Presidents (and judges) is being extended to a new generation who might aspire to high office.
This is so clearly a violation of ‘equal rights’ that it is hard to see how anyone could propose both at the same time, let alone vote for both.