[wp-trac] [WordPress Trac] #52376: Redirect loop occurs in taxonomy archive with URL-encoded slug.

WordPress Trac noreply at wordpress.org
Tue Jan 26 13:14:28 UTC 2021


#52376: Redirect loop occurs in taxonomy archive with URL-encoded slug.
--------------------------+-----------------------------
 Reporter:  Toro_Unit     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Canonical     |    Version:
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 The following steps will occur.

 1. Create taxonomy with `rewrite => false`.

 {{{#!php
 <?php
         $args = array(
                 'label'            => 'Genre',
                 'public'           => true,
                 'rewrite'           => false,
         );

         register_taxonomy( 'genre', array( 'post' ), $args );
 }}}


 2. Create a term with URL-encoded slugs. ( example: 🏠, ワードプレス )
 3. Set Permalink structure  to to something other than Plain.
 4. Go to the archive of the created term.
 5. Redirect loop.

 `remove_action( 'template_redirect', 'redirect_canonical' )`,  it will not
 occur.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52376>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list