Your attitude -- that everything that doesn't fit into particular economic worldview -- is a "troll" or an "April Fools joke" is unfortunate.
A better solution is for governments to not force such things but allow companies to negotiate freely with employees. Some may decide to offer extended maternity leave as a differentiator and to attract and retain female talent. But if they do so, they are doing so with coercion and for rational reasons.
My general response to letting companies negotiate freely is that it seems important, but potentially destructive at it's extreme. I think there should be certain minimum labor standards applied to all employers so that no one employer is at an economic disadvantage by treating their workers humanely. Regarding such minimum requirements including six months of paid maternity leave I'm not sure how I feel.
Correct. So that's why we ban that economically rational hiring approach. Problem solved.