The baking time for these vegetarian Cornish pasties is relatively long so there is no need to cook the onions and potato before using them to fill the pasties as they will soften during the cooking time. Some recipes suggest caramelizing the onion or frying the potato beforehand, but I honestly find this a totally unnecessary step. In keeping with a traditional recipe for a meat pasty, I've kept the filling quick and simple to prepare.