This code:
$files[$file->ID]['file_title'] = '<p><a target="_blank" href="' . esc_url( wp_get_attachment_url( $file->ID ) ) . '">' . $real_title . '</a>' . $title . '</p>';
Gives me:
https://example.com/wp-content/uploads/2022/03/sample.pdf`
But I want:
/wp-content/uploads/2022/03/sample.pdf`
How do I remove https://example.com/
?