PlaidWeb / Publ

Flexible publishing system for the web
http://publ.beesbuzz.biz/
MIT License
40 stars 4 forks source link

Properly redirect malformed empty category URLs #546

Closed fluffy-critter closed 1 year ago

fluffy-critter commented 1 year ago

Summary

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.

Developer/user impact

Test plan

See the simple /emptycat test.

Got a site to show off?