Opened 9 years ago
Closed 8 years ago
#34357 closed defect (bug) (invalid)
Canonical redirects don't take endpoints into account
Reported by: | johnbillion | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Canonical | Keywords: | needs-unit-tests reporter-feedback needs-testing |
Focuses: | Cc: |
Description
Steps to reproduce:
- Publish a post and visit its
/embed
endpoint URL. - Change your permalink structure.
- 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.
Change History (3)
Note: See
TracTickets for help on using
tickets.
We had the same problem with
wp_old_slug_redirect()
, see #33920. Perhaps we can reuse some code from there.