diff --git a/controllers/people/_form_toggle.htm b/controllers/people/_form_toggle.htm index 0254122..4795cf1 100644 --- a/controllers/people/_form_toggle.htm +++ b/controllers/people/_form_toggle.htm @@ -1,7 +1,7 @@ exists - ? 'winter/test/people/update/'.$formModel->id - : 'winter/test/people/create'; + $uriPrefix = ($formContext === 'create') + ? 'winter/test/people/create' + : 'winter/test/people/' . $formContext . '/' . $formModel->id; ?>