[wp-trac] [WordPress Trac] #41211: When the /category/category-name portion is repeated in the URL, it serves content instead of 404

WordPress Trac noreply at wordpress.org
Fri Jun 30 10:28:54 UTC 2017


#41211: When the /category/category-name portion is repeated in the URL, it serves
content instead of 404
---------------------------+-----------------------------
 Reporter:  sjwright1986   |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Rewrite Rules  |    Version:  4.8
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 '''Scenario'''
 We have two urls:
 * http://example.com/category/category-name/
 * http://example.com/category/category-name/category/category-name/

 The second URL above has the '/category/category-name/' portion of the URL
 repeated.

 '''Expected outcome'''
 * When visiting http://example.com/category/category-name/category
 /category-name/ the displays a  404 page as it's not a valid URL.

 '''Actual outcome'''
 * The page with the same content as http://example.com/category/category-
 name/ is served when visiting http://example.com/category/category-
 name/category/category-name/

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


More information about the wp-trac mailing list