Closed (fixed)
Project:
iFrame Title Filter
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
20 Feb 2026 at 20:53 UTC
Updated:
6 Mar 2026 at 21:10 UTC
Jump to comment: Most recent
The core markup for media oEmbed items omits the <title> tag from the page, resulting in an iFrame document that is an HTML page without a <title> tag.
This module can derive the title of the oembed item using the same methodology it uses for inserting the title attribute into the iframe tag itself.
Proposed new markup of media oembed template:
{% set title = resource.getTitle() ?? ("Embedded content from " ~ resource.getProvider().getName()) %}
<!DOCTYPE html>
<html>
<title>{{ title|t }}</title>
<head>
<css-placeholder token="{{ placeholder_token }}">
</head>
<body style="margin: 0">
{{ media|raw }}
</body>
</html>
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 #3
mark_fullmerComment #4
mark_fullmer