cameronterry / dark-matter

A highly opinionated domain mapping plugin for WordPress Networks
Other
12 stars 2 forks source link

Problem with Yoast SEO internal link counting #71

Closed cameronterry closed 2 years ago

cameronterry commented 3 years ago

A recent change introduced in 2.1.4 that ensures the post_content stores unmapped domains where appropriate, is now causing issues with Yoast's JavaScript implementation of counting internal links.

cameronterry commented 3 years ago

Just noting that after some debugging, this is the code where the discrepancy is occurring:

https://github.com/Yoast/wordpress-seo/blob/aae6ce493427a4d6843fb977ef88d4ae883d8360/admin/formatter/class-post-metabox-formatter.php#L102-L123

This is returned the mapped domain - because of the use of the home_url( '/' ) - which means the detection of internal links is being confused when admin URLs are loaded in.

cameronterry commented 2 years ago

Housekeeping:

Closing this issue as it was resolved with the release of 2.1.6.