Problem/Motivation
The orejime_videos module currently shows the cookie consent overlay for embedded videos on admin pages as well.
In backend contexts (for example content edit/preview screens), this blocks normal video preview/interaction and makes content management less practical.
Steps to reproduce
- Enable orejime_videos.
- Configure a video embed field/formatter (for example oEmbed/VEF) on content or enable the Convert Videos into Orejime Videos filter on the HTML formatter
- Open an admin page where the embedded video is rendered (for example node edit or preview).
- Observe that the Orejime cookie overlay is shown on top of the video.
Proposed resolution
Do not render the Orejime cookie overlay on media.filter.preview route.
Keep current consent/overlay behavior on frontend routes.
Bypass the placeholder/overlay logic when the current route is media.filter.preview.
User interface changes
Yes (admin only): embedded videos are shown without the Orejime overlay on backend pages.
No frontend UI change.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | orejime_videos-skip-overlay-when-in-editor-mode-3592232-5.patch | 3.03 KB | p-neyens |
Issue fork orejime_videos-3592232
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
p-neyens commentedComment #6
jvandooren commentedComment #7
p-neyens commented