do not redirect to category view page that doesn't exist

This commit is contained in:
Frédéric Péters 2009-03-23 16:27:31 +00:00
parent 8b1d2f23a0
commit 590641b3ed
1 changed files with 1 additions and 1 deletions

View File

@ -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: