You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to be a regression; there is code to handle this already, on rendering.py:239 (in render_category):
ifnottmpl:
# this might actually be a malformed category URLtest_path='/'.join((category, template))
record=orm.select(
eforeinmodel.Entryife.category==test_path).exists()
ifrecord:
returnredirect(url_for('category', category=test_path, **request.args))
# nope, we just don't know what this israisehttp_error.NotFound("No such view")
Expected Behavior
A URL like
http://example.com/foo
should redirect tohttp://example.com/foo/
iffoo
is a category and not a templateCurrent Behavior
http://example.com/photos
returns a 404 with an error like:for example: https://mullinslab.microbiol.washington.edu/photos
The text was updated successfully, but these errors were encountered: