[Bug] Meta analyzer ignores overlong og:title when <title> is missing
Maintainer antworten meist innerhalb von 1 Tag
@srikar-naidu arbeitet bereits daran.
Seit 30.10.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
Describe the bug
The meta analyzer checks the length of the HTML <title> element but does not check the length of og:title when no <title> element is present. Since og:title becomes the effective title for social previews, overly long values can pass without a warning.
To Reproduce
- Open the Preview Checker.
- Analyze a page without a
<title>element. - Add an
og:titlelonger than 70 characters:
<meta property="og:title"
content="This is an intentionally very long Open Graph title that exceeds seventy characters">
- Review the analyzer results.
Expected behavior
The analyzer should warn that the effective title is longer than the recommended 70-character limit.
Actual behavior
No title-length warning is shown when the long value exists only in og:title.
Screenshots
Not applicable.
Environment
- Browser: Chrome
- OS: Windows 11
- Node version: 22.x
- npm version: 10.x
- URL: Local Preview Checker or the relevant API URL
Additional context
The analyzer should validate the effective title using:
const effectiveTitle = tags.title || tags.ogTitle;
A regression test should also be added for pages containing an overlong og:title without an HTML <title>.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 8
- Forks
- 4
- Ø Merge
- 8 Std. 19 Min.
- Gemergte PRs (30 T.)
- 140
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus codercops/ogcops
-
[Bug] Difficulty Badge ignores its Accent Color fieldEvtl. vergeben @prakashNalla hat das heute übernommen. Offenbug hacktoberfest
codercops/ogcops#331 · 4 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Hacktoberfest 2026: start hereEvtl. vergeben @Saifjafri212213 hat das vor 1 Tag übernommen. Offenhacktoberfest
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 35/100
codercops/ogcops#88 · 13 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
feature good first issue hacktoberfest templates
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
codercops/ogcops#5 · 20 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in codercops/ogcops
Ähnliche Issues
-
area:cli bug P4
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug from-studio
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
esengine/DeepSeek-Reasonix#14868 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
loopbackio/loopback-next#11878 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
bug 🐛
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
comunica/comunica#1925 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag