Opened 6 years ago
Closed 10 months ago
#50222 closed defect (bug) (invalid)
Autocorrect redirect to the wrong URL based on a word after permalink
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 5.4.1 |
| Component: | Permalinks | Keywords: | close |
| Focuses: | Cc: |
Description
Sometimes, when the URL of a post ends with a keyword following the slash it redirects to a different page based on the keyword rather than the permalink.
For example:
Let's take this wordpress post URL:
[http://awishyourheartmakes.com/virtual-services/
]
If I had the word "super" at the end of the URL:
[http://awishyourheartmakes.com/virtual-services/super
]
rather than redirecting to http://awishyourheartmakes.com/virtual-services/
It will redirect to
http://awishyourheartmakes.com/super-fun-santa-maria/
Change History (2)
Note: See
TracTickets for help on using
tickets.
Hi there, welcome to WordPress Trac! Thanks for the report.
This is expected behavior, WordPress is trying to guess the correct URL using the redirect_guess_404_permalink() function.
If you'd like to change this behavior, there's a plugin for that: Disable URL Autocorrect Guessing.