Make WordPress Core

Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#20185 closed defect (bug) (duplicate)

Postname Permalink with no title yields 404 error

Reported by: ikemarrus's profile ikemarrus Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3.1
Component: Permalinks Keywords:
Focuses: Cc:

Description

When I change the permalink structure to %postname%, I get a 404 for all posts that don't have titles. The URL for each of these posts appears to be correct - it includes the ID instead of the title, but the post being served is listed as not found. If I change the generated permalink so that it is 3 digits rather than 4 or so that it has some alphabetic characters in it, all is OK.

Change History (7)

#1 @solarissmoke
12 years ago

  • Resolution set to duplicate
  • Status changed from new to closed
Last edited 12 years ago by solarissmoke (previous) (diff)

#2 @SergeyBiryukov
12 years ago

  • Milestone Awaiting Review deleted

#3 @ikemarrus
12 years ago

  • Resolution duplicate deleted
  • Status changed from closed to reopened

This seems a little different to me from the other tickets (and perhaps a higher priority). For one thing, the permalink matches the current post ID - there is no potential conflict with other posts (as there would be with a numeric title potentially matching another post). Also -- there is no real way around this other than changing the permalink - there could be a sytax rule stating that you can't use numeric titles, but the theme unit test dictates that posts without titles should be supported and yet they aren't when the permalink structure is %postname% - one of the suggested permalink choices and a favorite for SEO.

#4 @nacin
12 years ago

  • Keywords close added
  • Milestone set to Awaiting Review

#5 @iseulde
11 years ago

  • Component changed from General to Permalinks

#6 @c3mdigital
11 years ago

  • Keywords close removed
  • Resolution set to duplicate
  • Status changed from reopened to closed

This only occurs when post ids are 4 digits. Same issue as referenced in #5305

#7 @SergeyBiryukov
11 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.