Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #4328, comment 44


Ignore:
Timestamp:
03/24/2021 05:41:14 PM (4 years ago)
Author:
skorasaurus
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4328, comment 44

    initial v1  
    33
    44WordPress will redirect to the intended page from its old url to its new url in the following scenarios:
    5 
    6 I've only (manually) tested this on the post_type of 'page' and when the permalink setting (wp-admin/options-permalink.php) is set to post-name.
    75
    86when the slug is changed;
     
    1210when its parent page is made to have another parent page.
    1311
    14 The only scenario that I had found to not work and what made me find this ticket in the first place:
     12I've only (manually) tested this on the post_type of 'page' and when the permalink setting (wp-admin/options-permalink.php) is set to post-name.
    1513
    16 is that redirects will not work as expected when is when a page is added to have a 3rd level parent page.
     14The scenarios where redirection will not work and what made me find this ticket are:
     15
     16* when a page is added to have a 3rd parent page.
    1717
    1818For example, a page with the slug of "3d-printing" and has two levels of parent pages (so its full url is: "subjects/technology/3d-printing/" is made to have a 3rd parent page (the new url is "library/subjects/technology/3d-printing/") ;
    1919the redirect will not occur, and the user receives a 404.
     20
     21* when a page with 2 parents is renamed
     22
     23Example: a page with the slug 'book-club' and previous had 2 levels of parent pages (e.g. about/special-library/book-club) is renamed to "about/special-library/special-book-club"
     24The redirect is not made; and the user receives a 404.