Bug – Title of Post Causes The Permalink To 404
-
I think I have found a bug. I am using the latest version of WP for my website. When I create a title of a post as follows “RSHTOTF! – Mute BBM Groups – UPDATED!” as you can see some how I have 2 different dashes in there, one is a short dash, one is a long dash. This is just cosmetic normally but the real problem is that when WP creates a permalink to “https://domain.com/rshtotf-–-mute-bbm-groups/” this causes a 404. After doing some testing I found out that the long dash was the issue. As soon as I remove that from the title and recreate the permalink the link works perfect. I can understand the reason this cannot exist in the URL, but when I create the post title which the permalink is created from WP should remove it just like it does to other typical special characters, correct? For example if I add !@#$%^&*() or any other special chr to the end of my title it does not get put in the permalink but this long dash does. Just wondering what other peoples results are. I have pasted them below so others can test.
Long Dash –
Short Dash –It would seem that this post box will only let me paste normal ASCII chrs and so the above dashes look all the same. You will have to do testing with the following HTML codes.
– en-dash – (150 or 8211)
— em-dash — (151 or 8212)
- The topic ‘Bug – Title of Post Causes The Permalink To 404’ is closed to new replies.