[wp-trac] [WordPress Trac] #50084: redirect_canonical() need additional hook

WordPress Trac noreply at wordpress.org
Mon May 4 19:45:54 UTC 2020


#50084: redirect_canonical() need additional hook
--------------------------+------------------------------
 Reporter:  Tkama         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 Hi there, welcome back to WordPress Trac! Thanks for the report.
 > For example, I have the following permastructure
 `/%post_id%/%post_name%`. And I can visit the post by such URL `/123`. But
 I need the redirect to right URL `/123/postname`.

 Just noting this was previously reported in #12456.

 If a new hook is intended as a workaround for this particular issue, it
 seems better to just fix the issue instead.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50084#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list