The collapse of a gas or vapour bubble near a solid boundary produces a jet directed towards the boundary. High surface pressure and shear stress induced by this jet can damage, or clean, the surface. More complex geometries will result in changes in collapse behaviour, in particular the direction of the jet. The majority of prior research has focused on simple flat boundaries or limited cases with analytic solutions. We numerically and experimentally investigate how a slot in a flat boundary affects the jet direction for a single bubble. We use a boundary element model to predict how the jet direction depends on key geometric parameters and show that the results collapse to a single curve when the parameters are normalised appropriately. We then experimentally validate the predictions using laser-induced cavitation and compare the experimental results to the predicted dependencies. This research reveals a tendency for the jet to be directed away from a slot and shows that the jet direction is independent of slot height for slots of sufficient height.