We consider viscoelastic flows over topography in the presence of inertia. Such flows are modelled by an integral-boundary-layer approximation of the equations of motion and wall/free-surface boundary conditions. Steady states for flows over a step-down in topography are characterized by a capillary ridge immediately before the entrance to the step. A similar capillary ridge has also been observed for non-inertial Newtonian flows over topography. The height of the ridge is found to be a monotonically decreasing function of the Deborah number. Further, we examine the interaction between capillary ridges and excited non-equilibrium inertia/viscoelasticity-driven solitary pulses. We demonstrate that ridges have a profound influence on the drainage dynamics of such pulses: they accelerate the drainage process so that once the pulses pass the topographical feature they become equilibrium ones and are no longer excited.