PlaidWeb / Publ

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

Incorrect redirect for incomplete category path #501

Closed fluffy-critter closed 1 year ago

fluffy-critter commented 1 year ago

Expected Behavior

Going to an incomplete category path (e.g. /category/subcat) should redirect to the full category path (/category/subcat/)

Current Behavior

It redirects to /?values=%7B%27category%27%3A+%27category%2Fsubcat%27%7D instead

Possible Solution

There's something wrong with https://github.com/PlaidWeb/Publ/blob/89fbbba8dff1b677657f4ecb01fad91d28728208/publ/rendering.py#L299, possibly due to a change in Flask.

Context

Example in the wild: https://beesbuzz.biz/blog/chatter redirects to http://beesbuzz.biz/?values=%7B%27blog%27%3A+%27blog%2Fchatter%27%7D