public function redirectAfter(Model $model, $action = null) {
        if (!$action) {
            $action = $this->Controller->request->data[$model->alias]['redirect_to'];
        }

        if ($action === 'parent') {
            $parentName = $this->Controller->request->data[$model->alias]['redirect_to_model'];
            $className = $model->belongsTo[$parentName]['className'];
            $foreignKey = $model->belongsTo[$parentName]['foreignKey'];
            $id = !empty($this->Controller->request->data[$model->alias][$foreignKey]) ? $this->Controller->request->data[$model->alias][$foreignKey] : null;
            $foreignModel = Admin::introspectModel($className);
            $url = array('plugin' => 'admin', 'controller' => 'crud', 'action' => $id ? 'read' : 'index', $id, 'model' => $foreignModel->urlSlug);

        } else {
            $url = array('plugin' => 'admin', 'controller' => 'crud', 'action' => $action, 'model' => $model->urlSlug);

            switch ($action) {
                case 'read':
                case 'update':
                case 'delete':
                    $url[] = $model->id;
                break;
            }

        }

        $this->Controller->redirect($url);
    }