[wp-trac] [WordPress Trac] #45388: Hyperlink Errors

WordPress Trac noreply at wordpress.org
Fri Dec 7 01:38:26 UTC 2018


#45388: Hyperlink Errors
-------------------------------------+------------------------------
 Reporter:  nhfrega                  |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Canonical                |     Version:  4.9.8
 Severity:  normal                   |  Resolution:
 Keywords:  close reporter-feedback  |     Focuses:
-------------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:   => close reporter-feedback
 * component:  General => Canonical


Comment:

 Hi @nhfrega, welcome to WordPress Trac! Thanks for the report.

 If I'm reading this correctly, the issue is that once a post is deleted,
 any links to it would now link to another post with a similar slug.

 That's not a bug, it's WordPress trying to guess the correct URL using the
 [https://developer.wordpress.org/reference/functions/redirect_guess_404_permalink/
 redirect_guess_404_permalink()] function.

 If you'd like to change this behavior, there's a plugin for that:
 [https://wordpress.org/plugins/disable-url-autocorrect-guessing/ Disable
 URL Autocorrect Guessing].

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45388#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list