Yoast / Yoast/duplicate-post

Scheduled posts using the Rewrite & Republish feature in Yoast Duplicate Post show as a 404 for Jetpack email subscribers and ConvertKit

Open
#358 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

IM
Dominant language
PHP
Stars
53
Forks
38
Avg merge
4d 8h
Merged PRs (30d)
1

Description

Issue moved from GitHub: https://yoast.atlassian.net/browse/IM-874
Reporter: Michael Brian Tina

  • I've searched for any related issues and avoided creating a duplicate issue.
Please give us a description of what happened

When you use the Rewrite & Republish feature in Yoast Duplicate Post v4.1.1 and schedule a post, once the post has been republished, those subscribed through email (via Jetpack) receive an email of the new post. The URL in the email leads to a 404.

I tried testing this on one of my websites initially (disabling all plugins except for Jetpack and reverting to a default WordPress theme) and created a new post and published it normally. On one of my subscribed email addresses, I then received an email linking to the new post. It was showing the /?p=208 URL but when clicked on, it loaded the post just fine.
screenshot-mail google com-2021 02 09-10_54_24

I then used the Rewrite & Republish feature on the same post and scheduled it for a few minutes later. Once it republished, I then received another email from Jetpack linking to the modified post.
screenshot-mike checkthelatest com-2021 02 09-10_55_10
screenshot-mail google com-2021 02 09-10_56_52

However, when you click on the URL, it loads a 404 instead of the correct post.
Screen Shot 2021-02-09 at 11 25 35 AM

To Reproduce
Step-by-step reproduction instructions

This text is here if the information was not retained when moving the issue.

Expected results

To show the correct link on the email

Actual results

For websites that use the Jetpack email subscription, their users would receive a 404 instead of a link to the post, which would affect their experience as a subscriber.

Screenshots, screen recording, code snippet

If possible, please provide a screenshot, a screen recording or a code snippet which demonstrates the bug.

Technical info
  • If relevant, which editor is affected (or editors):
  • Block Editor
  • Gutenberg Editor
  • Classic Editor
  • Other:
  • Which browser is affected (or browsers):
  • Chrome
  • Firefox
  • Safari
  • Other:
Used versions
  • Device you are using:
  • Operating system:
  • PHP version:
  • WordPress version:
  • WordPress Theme:
  • Yoast Duplicate Post version:
  • Gutenberg plugin version:
  • Classic Editor plugin version:
  • Relevant plugins in case of a bug:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing Rewrite & Republish with a scheduled post and email subscriptions through Jetpack and ConvertKit, comparing the normal publication URL with the republished one. No source files or tests are named, so trace the generated subscriber links from the reproduction. Done means both services receive a URL that opens the correct post instead of a 404.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.