Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.58k stars 798 forks source link

Yoast "Rewrite & Republish" feature show as a 404 for Jetpack email subscribers. #35099

Open roo2 opened 7 months ago

roo2 commented 7 months ago

This came from a user report. Basically, Yoast has a feature called "Rewrite & Republish" which re-creates a post with the same permalink etc and publishes it again.

There is an interaction with Jetpack where the post is published to Jetpack email subscribers but has a broken post_id in the link that is sent out.

The issue is described on the Yoast side here https://github.com/Yoast/duplicate-post/issues/358.

Now it's not initially clear to me whether this bug is on the Yoast side or the Jetpack side or some interaction between the two. There was an internal comment on the yoast side:

I have confirmed this. The cause seems to be that Jetpack hooks into the publication of the temporary “rewrite & republish” post, which is never actually published. It’s unclear where jetpack hooks in here, but that is the reason it gets the wrong URL. Not sure if this is up to us to fix.

I'm raising this bug on the Jetpack side here in case we can fix it on our end, considering Yoast is a very popular wordpress plugin and this bug would impact Jetpack users.

anomiex commented 7 months ago

Bugomattic suggests @Automattic/zap works on Jetpack Plugin > Subscriptions, so pinging them to have a look.

simison commented 7 months ago

We'll take a look 👍

darssen commented 1 month ago

Since I'm working on something somewhat related I have tried installing Yoast Duplicate and using the Rewrite & Republish feature to see if it worked in this scenario.

When republishing a post, I'm not getting a new email though. Am I doing something wrong?