Opened 11 years ago
Closed 10 years ago
#34357 closed defect (bug) (invalid)
Canonical redirects don't take endpoints into account
| Reported by: | johnbillion | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Canonical | Version: | |
| Severity: | normal | Keywords: | needs-unit-tests reporter-feedback needs-testing |
| Cc: | Focuses: |
Description
Steps to reproduce:
- Publish a post and visit its
/embedendpoint 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
We had the same problem with
wp_old_slug_redirect(), see #33920. Perhaps we can reuse some code from there.