Please give us a description of what happened
When WordPress siteurl and home are on different domains or subdomains, cloning a post via the [Clone] link on the Posts/Pages edit.php page redirects the user to the Admin Dashboard page, not back to the edit.php page, as expected.
I can consistently reproduce this issue on different WordPress sites with WP v5.9.x (PHP 8.1) through 6.8.x (PHP 8.3).
To Reproduce
Step-by-step reproduction instructions
- In the WP Admin UI go to Settings > General and set the values of WordPress Address (URL) and Site Address (URL) to different domains.
- Go to the Posts page, hover over a post entry, and then click the Clone link that appears.
- Post is cloned to a new draft, and then the user is redirected to the Admin Dashboard page.
Expected results
- Cloning an article on the Posts page should redirect back to the Posts page after the post is successfully cloned. This is the experience when the WordPress Address and Site Address are the same domain regardless of path.
Actual results
- Cloning an article on the Posts page when the WordPress Address and Site Address are different domains (or subdomains) results in the user getting redirected to the Admin Dashboard page.
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):
- Which browser is affected (or browsers):
Used versions
- Yoast Duplicate Post 4.5
- WordPress 5.9.10, 6.3.2, and 6.8.3
- PHP 8.1, 8.2, and 8.3
Please give us a description of what happened
When WordPress
siteurlandhomeare on different domains or subdomains, cloning a post via the [Clone] link on the Posts/Pages edit.php page redirects the user to the Admin Dashboard page, not back to the edit.php page, as expected.I can consistently reproduce this issue on different WordPress sites with WP v5.9.x (PHP 8.1) through 6.8.x (PHP 8.3).
To Reproduce
Step-by-step reproduction instructions
Expected results
Actual results
Screenshots, screen recording, code snippet
If possible, please provide a screenshot, a screen recording or a code snippet which demonstrates the bug.
Technical info
Used versions