Make WordPress Core

Opened 4 years ago

Last modified 4 years ago

#50222 new defect (bug)

Autocorrect redirect to the wrong URL based on a word after permalink

Reported by: bloup's profile bloup Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.4.1
Component: Permalinks Keywords: close
Focuses: Cc:


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:
If I had the word "super" at the end of the URL:
rather than redirecting to

It will redirect to

Change History (1)

#1 @SergeyBiryukov
4 years ago

  • Keywords close added

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.

Note: See TracTickets for help on using tickets.