Skip to content

Commit a3486bb

Browse files
authored
Give a name for the breadcrumbs schema.org asset (#42881)
1 parent 51f9bfe commit a3486bb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/mod_breadcrumbs/tmpl/default.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,12 @@
118118
/** @var WebAssetManager $wa */
119119
$wa = $app->getDocument()->getWebAssetManager();
120120
$prettyPrint = JDEBUG ? JSON_PRETTY_PRINT : 0;
121-
$wa->addInline('script', json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | $prettyPrint), [], ['type' => 'application/ld+json']);
121+
$wa->addInline(
122+
'script',
123+
json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | $prettyPrint),
124+
['name' => 'inline.mod_breadcrumbs-schemaorg'],
125+
['type' => 'application/ld+json']
126+
);
122127
}
123128
?>
124129
</nav>

0 commit comments

Comments
 (0)