#22210 closed defect (bug) (duplicate)
Permalink 404 when re-using trashed page's permalink
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | major | Version: | 3.4.2 |
Component: | Permalinks | Keywords: | |
Focuses: | Cc: |
Description
When creating a post with the same permalink as a page that has been trashed (not permanently deleted) the page will 404 presuming the page to be non-existant.
This does not take into account which post/page was created first, if there is a trashed page it will 404.
Can be replicated as follows:
- Create a page with any title
- Publish the page
- Move the page to trash (do not permanently delete the page)
- Create a new post with the same title
- Publish the post and try viewing it
When permanently deleting the page this is no longer an issue, also the title can be anything as long as the permalink is identical to the trashed article.
This was brought up in #19333 with version 3.2.1 as well, but appears to have been related to a misconfigured htaccess file/webserver at the time.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
I couldn't reproduce this until I switched my permalink settings to
/%postname%/
.