WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#20617 closed defect (bug) (duplicate)

Permalinks with titles consisting of special characters do not work.

Reported by: 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)

comment:1 SergeyBiryukov2 years ago

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

comment:2 scribu2 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.

comment:3 RosaElefant2 years ago

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

Version 0, edited 2 years ago by RosaElefant (next)

comment:4 scribu2 years ago

What would you expect the generated slug to be?

comment:5 RosaElefant2 years ago

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

Note: See TracTickets for help on using tickets.