Rewrite And Republish Changing URL and Slug
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:
Note the number 4 at the end of the url.
To Reproduce
Step-by-step reproduction instructions
- Clicked rewrite and republish
- Changed the date of the publish to the current date.
- Republish
Expected results
- The date of the republish to change but the URL to remain the same.
Actual results
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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