[wp-trac] [WordPress Trac] #45588: Gutenberg puts special characters in its "permalink preview" for draft articles

WordPress Trac noreply at wordpress.org
Tue Dec 11 19:39:14 UTC 2018


#45588: Gutenberg puts special characters in its "permalink preview" for draft
articles
--------------------------+-----------------------------
 Reporter:  pressupinc    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  5.0
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45588>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list