Corrected the preview url and ensured we do not perform a preview on a deleted record