Hi Wint,
This happens because YouTube controls playback links, even with “unlisted” videos, clicking the YouTube logo or video title redirects viewers to the YouTube site. Unfortunately, Odoo simply embeds the YouTube iframe, so this behavior comes from YouTube itself.
Here are your best options to stop or limit redirection:
-
Use the “embed” link format instead of the normal YouTube URL.
Example:
https : // www.youtube.com/embed/VIDEO_ID?rel=0&modestbranding=1&controls=1
This disables clickable titles and minimizes external links.
-
Host videos privately instead of YouTube.
Upload them to Odoo’s own file storage, Vimeo (private mode), or another video CDN, then link them in your courses. Vimeo’s “domain-level privacy” feature is especially good for this.
-
Custom solution:
A developer can create a small module that strips clickable overlays from YouTube iframes and disables navigation to youtube.com entirely.
If you want full control and no redirection at all, the only reliable option is to self-host or use a private video service (like Vimeo or BunnyStream) instead of YouTube.