diff --git a/src/patients/patients-slice.ts b/src/patients/patients-slice.ts index 7410e6a283..76a381880d 100644 --- a/src/patients/patients-slice.ts +++ b/src/patients/patients-slice.ts @@ -44,7 +44,7 @@ export const createPatient = (patient: Patient, history: any): AppThunk => async dispatch(createPatientStart()) const newPatient = await PatientRepository.save(patient) dispatch(createPatientSuccess()) - history.push(`patients/${newPatient.id}`) + history.push(`/patients/${newPatient.id}`) } catch (error) { console.log(error) }