LIB001-664 Change record.php to cater for prefixed URLs