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

  1. Enable orejime_videos.
  2. 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
  3. Open an admin page where the embedded video is rendered (for example node edit or preview).
  4. 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.

Command icon 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

p-neyens created an issue. See original summary.

p-neyens changed the visibility of the branch 3592232-cookie-overlay-on-admin-pages to hidden.

p-neyens changed the visibility of the branch 3592232-cookie-overlay-on-admin-pages to active.

p-neyens’s picture

jvandooren’s picture

Status: Active » Reviewed & tested by the community
p-neyens’s picture

Assigned: p-neyens » Unassigned
Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.