[wp-trac] [WordPress Trac] #34357: Canonical redirects don't take endpoints into account

WordPress Trac noreply at wordpress.org
Mon Oct 19 17:15:33 UTC 2015


#34357: Canonical redirects don't take endpoints into account
--------------------------+------------------------------------------
 Reporter:  johnbillion   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Canonical     |    Version:
 Severity:  normal        |   Keywords:  needs-patch needs-unit-tests
  Focuses:                |
--------------------------+------------------------------------------
 Steps to reproduce:

  0. Publish a post and visit its `/embed` endpoint URL.
  1. Change your permalink structure.
  2. Visit the same URL again.

 Note that the canonical redirect kicks in and redirects you to the correct
 permalink, but the `/embed` endpoint gets stripped.

 It might be possible for `redirect_canonical()` to look at the registered
 rewrite endpoints and take them into consideration when performing a
 redirect.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34357>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list