You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Despite this, the Open Graph panel still shows icon and lang as missing.
What I’ve found so far
After tracing through the DevTools code, the behavior seems to come from how tags are normalized and matched, not from Nuxt / Unhead failing to provide them.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I’ve been digging into the Open Graph module in Nuxt DevTools and wanted to start a discussion before going further or preparing a PR.
What I’m seeing
The Open Graph panel reports missing tags for:
iconlang…even though both are defined globally via
app.headinnuxt.config.tsand are clearly present in the rendered<head>/<html>output.Example (simplified):
Rendered HTML (confirmed via browser inspector):
Despite this, the Open Graph panel still shows
iconandlangas missing.What I’ve found so far
After tracing through the DevTools code, the behavior seems to come from how tags are normalized and matched, not from Nuxt / Unhead failing to provide them.
Relevant files:
packages/devtools/client/data/open-graph.tspackages/devtools/client/pages/modules/open-graph.vuepackages/devtools/client/components/OpenGraphMissingTabs.vueNormalization logic
In
open-graph.vue, tags are normalized like this:and
langis only mapped if:Later, missing tags are determined via strict equality:
Question
Before going further, I wanted to ask:
useHead()/useSeoMeta()tags?If the latter, I’d be happy to:
resolveTags()represents these casesrel, treating any icon link as fulfillingicon, broadeninglangdetection)Just wanted to align on expectations first, thanks :)
Beta Was this translation helpful? Give feedback.
All reactions