Opened 5 years ago
Closed 5 years ago
#50246 closed defect (bug) (duplicate)
Question marks in titles are not being removed from permalinks
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 5.5 |
Component: | Permalinks | Keywords: | |
Focuses: | Cc: |
Description
It is my understanding that permalinks should only have alphanumeric characters and dashes, nothing else.
I noticed that when using question marks in my titles, they are not being removed in the permalinks.
A quick example of this:
- Title: ¿Test?
- Permalink: http://localhost/wordpress/¿test?/
I tested this using the latest WordPress version using es_ES language and the Twenty Twenty theme. No plugins installed.
Change History (1)
Note: See
TracTickets for help on using
tickets.
Hi there, welcome back to WordPress Trac! Thanks for the report.
I could not reproduce the issue on a clean install, the slug of the post is
test
after publishing.There is, however, a visual issue with how the permalink is displayed in the editor before publishing. Basically, the editor shows the incorrect, unsanitized post slug, which corrects itself after publishing. See some more details in #45478.
That issue is being tracked in https://github.com/WordPress/gutenberg/issues/12907 and appears to be fixed in the upcoming WordPress release: https://github.com/WordPress/gutenberg/pull/21007.