WordPress.org

Make WordPress Core

Opened 10 years ago

Last modified 21 months ago

#6619 new enhancement

permalink field misleading in page editor: it displays the erroneous values

Reported by: Denis-de-Bernardy Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 2.5
Component: Editor Keywords: needs-patch
Focuses: Cc:

Description

if you create a sub-page, the permalink field should display the proper permalink.

currently, if you have:

site.com/page/

and when you create:

site.com/page/subpage/

the permalink shows:

site.com/subpage/

until it gets saved

the expected behavior would be for it to show the correct permalink.

the same remark applies when you then change the permalink. if the parent is no longer page, but rather page-2, then the permalink should update accordingly.

Change History (11)

#1 @Viper007Bond
10 years ago

The only way to do this would be to fire the autosave when the parent is changed I guess.

#2 @Denis-de-Bernardy
10 years ago

fetching the parent page's permalink (or the site's url) without autosaving also works

D.

#3 @ryan
10 years ago

  • Milestone changed from 2.5.2 to 2.9

Milestone 2.5.2 deleted

#4 @Denis-de-Bernardy
9 years ago

  • Component changed from Administration to JavaScript
  • Keywords needs-patch added
  • Owner changed from anonymous to azaozz
  • Type changed from defect (bug) to enhancement

#5 @Denis-de-Bernardy
9 years ago

see also: #7733 (with a possible fix)

#6 @Denis-de-Bernardy
9 years ago

  • Component changed from JavaScript to Editor
  • Owner azaozz deleted

#7 @westi
9 years ago

Still see this doesn't see to get fixed until page is published.

#8 @ryan
9 years ago

  • Milestone changed from 2.9 to Future Release

#9 @chriseverson
4 years ago

This is related to #24237 with a possible patch.

#10 @iseulde
3 years ago

#24237 was marked as a duplicate.

#11 @jackreichert
21 months ago

This doesn't seem to be an issue anymore. But if you change the parent perhaps the permalink should be updated to reflect without a save.

If that's the case perhaps this ticket should be closed and a different ticket opened.

Note: See TracTickets for help on using tickets.