Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#7706 closed enhancement (fixed)

Canonical redirect should try to find the correct post on error.

Reported by: azaozz's profile azaozz Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

Typing site.com/?p=123 should redirect to the correct URL if ID 123 exists.

The current patch will redirect site.com/?p=123, site.com/?page_id=123 and site.com/?attachment_id=123 to the correct URL. When ID 123 is a revision, that would be the published post.

Attachments (1)

redir-to-real-post.patch (2.1 KB) - added by azaozz 17 years ago.

Download all attachments as: .zip

Change History (2)

#1 @azaozz
17 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [8843]) Redirect to the correct URL on error, fixes #7706

Note: See TracTickets for help on using tickets.