[Bug] Meta analyzer ignores overlong og:title when <title> is missing
I maintainer di solito rispondono entro 1 giorno
@srikar-naidu ci sta già lavorando.
Dal 30/10/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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>.
- Lingua principale
- TypeScript
- Stelle
- 8
- Fork
- 4
- Merge medio
- 8h 19m
- PR unite (30g)
- 140
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di codercops/ogcops
-
[Bug] Difficulty Badge ignores its Accent Color fieldForse già presa @prakashNalla l’ha presa oggi. Apertabug hacktoberfest
codercops/ogcops#331 · 4 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Hacktoberfest 2026: start hereForse già presa @Saifjafri212213 l’ha presa 1 giorno fa. Apertahacktoberfest
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 35/100
codercops/ogcops#88 · 13 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
feature good first issue hacktoberfest templates
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
codercops/ogcops#5 · 20 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di codercops/ogcops
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Northeastern-Electric-Racing/FinishLine#4660 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
excaliburjs/Excalibur#3895 ·
I maintainer di solito rispondono entro 3 giorni
-
infer_audio_type only recognises one MPEG Layer III frame header, so most MP3 files are rejectedForse già presa @Steve-20-ai l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Earn report crashes with "RangeError: Invalid time value" when a report row has an unparsable timestampForse già presa @Gurkaran18 l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
joinmarket-webui/jam#1588 ·
I maintainer di solito rispondono entro 3 giorni
-
BeOS .json missingAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
mihaip/infinite-mac#475 ·