do not redirect to category view page that doesn't exist
This commit is contained in:
parent
8b1d2f23a0
commit
590641b3ed
|
@ -58,7 +58,7 @@ class CategoryPage(Directory):
|
|||
def edit [html] (self):
|
||||
form = self.category_ui.form_edit()
|
||||
if form.get_widget('cancel').parse():
|
||||
return redirect('.')
|
||||
return redirect('..')
|
||||
|
||||
if form.is_submitted() and not form.has_errors():
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue