Move the esc_url to the line where it's being echoed.