Properly redirect on a category with no content but with subcategory content when given a non-/-terminated URL. Fixes #545
Detailed description
When checking to see if a URL is a malformed category URL, also accept it if there are matching subcategories. For example, http://example.com/emptycat redirects to https://example.com/emptycat/ if there are valid entries within the /emptycat/subcat category.
Summary
Properly redirect on a category with no content but with subcategory content when given a non-
/
-terminated URL. Fixes #545Detailed description
When checking to see if a URL is a malformed category URL, also accept it if there are matching subcategories. For example,
http://example.com/emptycat
redirects tohttps://example.com/emptycat/
if there are valid entries within the/emptycat/subcat
category.Developer/user impact
Test plan
See the simple
/emptycat
test.Got a site to show off?