Make WordPress Core

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's profile 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:

http://webrockstar.net/wp-permalink-bug.png

Attachments (2)

Post Edit Permalink Change.png (12.6 KB) - added by lukecavanagh 7 years ago.
Post Edit Permalink Change
37925-works.gif (4.2 MB) - added by hellofromTonya 4 years ago.
Tested in Chrome with 5.7 trunk. Works for me.

Change History (9)

#1 follow-up: @rinkuyadav999
8 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

Link will not update till you press page update button.

#2 in reply to: ↑ 1 @SergeyBiryukov
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

#3 @konoknew
7 years ago

Yes Same Problem I am stack.......... Please anyone help me

#4 @lukecavanagh
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

@lukecavanagh
7 years ago

Post Edit Permalink Change

#5 @SergeyBiryukov
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.

@hellofromTonya
4 years ago

Tested in Chrome with 5.7 trunk. Works for me.

#6 @hellofromTonya
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 @hellofromTonya
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.

Note: See TracTickets for help on using tickets.