1Slice the onions thinly. Melt the butter with the olive oil in a pan over medium-low heat and cook the onions for about 20 minutes, stirring now and then, until soft and deep golden.
2Pat the steak dry and season it with salt and pepper if using. Heat a dry heavy pan over high heat.
3Sear the steak for about 4 minutes per side until well browned and no pink remains in the centre. Rest it for 5 minutes, then slice it thinly across the grain.
4Heat the oven to 200 C. Split the baguette lengthways and spread the pesto over the base.
5Layer the sliced steak, caramelised onions, and shredded mozzarella on the base, then close the baguette.
6Bake for 5 minutes until the cheese melts and the bread is crisp, then cut into 4 pieces and serve warm.