Skip to content

Commit

Permalink
Document Settings: Display pretty permalink for draft posts (#43600)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Aug 26, 2022
1 parent 427871e commit e91cb53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/components/post-url/label.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function PostURLLabel() {

export function usePostURLLabel() {
const postLink = useSelect(
( select ) => select( editorStore ).getCurrentPost().link,
( select ) => select( editorStore ).getPermalink(),
[]
);
return filterURLForDisplay( safeDecodeURIComponent( postLink ) );
Expand Down

0 comments on commit e91cb53

Please sign in to comment.