Swap record id with actual id when found by slug, update csp