Why is my video using the Wordpress direct video file path when displaying it in a AJAX modal?

demeillon Member Posts: 2

I've developed a custom Wordpress theme and I'm using the Cloudinary plugin to deliver my media files.

On first page load the images and videos are delivered using the Cloudinary url. But for some reason when a open a modal using AJAX to retrieve the data the video direct path gets delivered. The images are still being delivered using the Cloudinary url.

Am I missing something in the settings?