WordPress.org

Make WordPress Core

Opened 5 weeks ago

Closed 5 weeks ago

#45588 closed defect (bug) (duplicate)

Gutenberg does not strip special characters from its "permalink preview" for draft articles

Reported by: pressupinc Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.0
Component: Editor Keywords:
Focuses: Cc:

Description

In 5.0, Gutenberg doesn't properly strip special characters from its suggested permalinks for post drafts.

If you create an article with the following title:

Article,./<>?;:'"[{]}\|-_=+`~!@#$%^&*()

and save the article as a draft, the "suggested permalink" generated above it is:

https://site.com/article,-<>?;:'"[{]}\|--=+`~!@#$%^&*()

If you then publish it, it creates the proper permalink with special characters stripped:

https://site.com/article-_

But the preview generator needs to be stripping those special characters.

Attachments (2)

gutenberg_permalinks_preview_broken.png (21.7 KB) - added by pressupinc 5 weeks ago.
tinymce_permalinks_preview_correct.png (7.8 KB) - added by pressupinc 5 weeks ago.

Download all attachments as: .zip

Change History (4)

#1 @pressupinc
5 weeks ago

  • Summary changed from Gutenberg puts special characters in its "permalink preview" for draft articles to Gutenberg does not strip special characters from its "permalink preview" for draft articles

#2 @SergeyBiryukov
5 weeks ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi @pressupinc, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #45478.

Note: See TracTickets for help on using tickets.