Does version 5.27 break links to live and test-drive pages for contribution pages?
Enabling Cleaner URLs, as described here: https://docs.civicrm.org/sysadmin/en/latest/install/wordpress/#enabling-cleaner-urls-for-wordpress
appears to resolve this problem.