CiviCRM 5.26 and WordPress - Major Changes
There was recently changes to WordPress that is changing the way redirect_canonical works. You can view the details in our GitLab issue #49 , If you want further details you can see all of the WordPress issues related to how redirects are done. These changes are designed to better handle
rel="canonical" in WP.