Have you tried passing the parameter like this?
router.push({
pathname: '../routes/workoutDetail',
params: {
id: workout.id
}
})
Also, using ../routes may not be the best approach for defining the pathname. It’s better to use the global namespace"