Yoast / Yoast/duplicate-post

Rewrite And Republish Changing URL and Slug

Open
#333 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

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

I did the command REWRITE AND REPUBLISH on all pages of my website. A few days later I noticed a number at the end of the page name. For example, this page is supposed to be this url:
https://clearcutpestcontrol.com/cockroaches
Instead, THIS is what has been created:
Screen Shot 2023-11-11 at 8 43 32 PM

Note the number 4 at the end of the url.

To Reproduce
Step-by-step reproduction instructions
  1. Clicked rewrite and republish
  2. Changed the date of the publish to the current date.
  3. Republish
Expected results
  1. The date of the republish to change but the URL to remain the same.
Actual results
  1. A new URL and Slug with a number at the end (for a version) is created. This is what google will be getting.
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):
  • [ yes] Chrome
  • [ yes] Firefox
  • [yes ] Safari
  • Other:
Used versions
  • Device you are using: Mac Pro Desktop
  • Operating system: Mac OS 10.14.6
  • PHP version:
  • WordPress version: 6.4.1
  • WordPress Theme: Creativo
  • Yoast Duplicate Post version: 4.5
  • 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 the issue through the Rewrite and Republish command with a page whose publish date is changed, using the reported WordPress 6.4.1 and Yoast Duplicate Post 4.5 versions if available. Done means the republished page keeps its original URL and slug instead of receiving a numeric suffix.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.