Only redirect to first record if it exists. change baseUrl og rest calls