In the case where a record number is not passed to the detail page, redirect to the records page.