Opened 9 years ago
Closed 8 years ago
#34357 closed defect (bug) (invalid)
Canonical redirects don't take endpoints into account
Reported by: |
|
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)
#2
@
8 years ago
- Keywords reporter-feedback needs-testing added; needs-patch removed
@johnbillion - This seems to be fixed now, tested on WP version 4.8-alpha-39471 and works as expected.
Version 0, edited 8 years ago
by
(next)
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.