Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#20617 closed defect (bug) (duplicate)

Permalinks with titles consisting of special characters do not work.

Reported by: rosaelefant's profile RosaElefant Owned by:
Milestone: Priority: normal
Severity: major Version:
Component: General Keywords:
Focuses: Cc:

Description

One of my articles in February 2012 has the title "□□□□□□□□□: 0 □□□□□□□□". I know, I should use a better title, but WordPress should be able to process it.

My permalink structure looks as follows: /%year%/%monthnum%/%postname%/

Now the automatically generated permalink for the aforementioned article is http://tuxproject.de/blog/2012/02/0/ which leads to 2012/02 archives but not to the single article. There is no way to access the article directly.

I presume this is a major bug in WordPress's permalink generator.

Change History (5)

#1 @SergeyBiryukov
13 years ago

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

#2 @scribu
13 years ago

There are two things at play here:

1) The slug is generated by stripping special characters.

2) With your permalink structure, http://tuxproject.de/blog/2012/02/0/ is considered a day archive.

There are also two possible workarounds:

1) Manually edit the slug to be non-numeric.

2) Change your permalink structure so that it doesn't look like a date archive.

#3 @RosaElefant
13 years ago

Hmm, I guess I will use the first option then. I just think WordPress should be smart enough to avoid that.

edit: Changing it to _0 makes it an error 404 instead.

Last edited 13 years ago by RosaElefant (previous) (diff)

#4 @scribu
13 years ago

What would you expect the generated slug to be?

#5 @RosaElefant
13 years ago

Maybe _0? Or ".0", dots should work in URLs...

Note: See TracTickets for help on using tickets.