Opened 8 years ago
Closed 3 years ago
#37925 closed defect (bug) (worksforme)
permalink not updating after editing slug, on post edit admin page
Reported by: | stevepuddick | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.6 |
Component: | Permalinks | Keywords: | close reporter-feedback |
Focuses: | javascript | Cc: |
Description
When editing an existing permalink on a post edit page, the link itself does not update until the post is updated (save draft, or update is clicked). However, the text for the permalink is immediately updated. It is expected that the permalink will also be updated to the new value and not just the permalink text. This bug can be recreated as follows:
1) click the 'edit' button on any post edit screen (on any custom post type that supports permalinks)
2) edit the slug to have an alternate value
3) click on the anchor text next to the 'edit' button. This will bring you to a 404 page since that old link is no longer correct
Refer to this screenshot for more info:
Attachments (2)
Change History (9)
#2
in reply to:
↑ 1
@
8 years ago
- Resolution wontfix deleted
- Status changed from closed to reopened
Replying to rinkuyadav999:
Link will not update till you press page update button.
That's the issue being reported. It's not necessarily the expected behaviour if it leads to a 404 error.
Related: #35352
#4
@
7 years ago
@stevepuddick
The permalink will not update until a user clicks the Update button on the Edit Post screen. If you click on Permalink then edit, that will allow you to update the slug, then hit OK, but when you click on OK that will not update the permalink.
edit-slug-box
https://core.trac.wordpress.org/browser/tags/4.7/src/wp-admin/edit-form-advanced.php#L593
#5
@
7 years ago
- Keywords close added
It is expected that the permalink will also be updated to the new value and not just the permalink text.
I don't think I agree with that. The new text shows what the permalink will look like once you click the Update button, but I wouldn't expect any changes to actually apply before I click the Update button.
3) click on the anchor text next to the 'edit' button. This will bring you to a 404 page since that old link is no longer correct
Can't reproduce this point. The old link is still correct until you click the Update button.
#6
@
4 years ago
- Keywords reporter-feedback added
Hello @stevepuddick,
Does this problem persist for you today?
3) click on the anchor text next to the 'edit' button. This will bring you to a 404 page since that old link is no longer correct
I too am not able to reproduce the 404. See the gif above.
Does the problem still happen for you today? If yes, please let us know for further investigation.
#7
@
3 years ago
- Milestone Awaiting Review deleted
- Resolution set to worksforme
- Status changed from reopened to closed
Closing this ticket. Why?
- Sergey and I are unable to reproduce the issue
- Marked for close 4 years ago
- No reporter follow-up
- No activity
However @stevepuddick if this problem still exists for you today, please re-open and provide more information to help contributors investigate.
Link will not update till you press page update button.