Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#7706 closed enhancement (fixed)

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

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

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 18 years ago.

Download all attachments as: .zip

Change History (2)

#1 @azaozz
18 years ago

  • Resolution → fixed
  • Status new → closed

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

Note: See TracTickets for help on using tickets.