Closed fluffy-critter closed 1 year ago
Going to an incomplete category path (e.g. /category/subcat) should redirect to the full category path (/category/subcat/)
/category/subcat
/category/subcat/
It redirects to /?values=%7B%27category%27%3A+%27category%2Fsubcat%27%7D instead
/?values=%7B%27category%27%3A+%27category%2Fsubcat%27%7D
There's something wrong with https://github.com/PlaidWeb/Publ/blob/89fbbba8dff1b677657f4ecb01fad91d28728208/publ/rendering.py#L299, possibly due to a change in Flask.
Example in the wild: https://beesbuzz.biz/blog/chatter redirects to http://beesbuzz.biz/?values=%7B%27blog%27%3A+%27blog%2Fchatter%27%7D
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
insteadPossible 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