Commits

Anonymous committed 22c75a9

edit events slug redirect to correct slug

  • Participants
  • Parent commits b899c76

Comments (0)

Files changed (1)

File c5t/core/controllers/calendars/event.py

         
         main_orm_session.flush_all()
         main_orm_session.close_all()
-        redirect('.')
+        path_parts = request.path_info.split('/')
+        path_parts = path_parts[1:-2]       
+        redirect('/'+'/'.join(path_parts)+'/'+event.slug+'/')
 
     @require(HasAnyRole('admin', 'writer'))
     @expose('c5t.core.templates.calendar.event.get_delete')