Skip to content

Commit c20f400

Browse files
ryan-williamsclaude
andcommitted
Make og:image absolute + add dimension/type/alt tags
Android Signal/WhatsApp were silently dropping the link preview while desktop/iPad rendered fine. Most likely cause: relative `og:image` URL (`/og.png`). Some scrapers (Signal Android in particular) require absolute URLs or bail early when image dimensions aren't declared. Also added `og:type`, `og:url`, and a `twitter:card` fallback that some clients (Signal, Telegram) use when present. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 14c8f48 commit c20f400

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

www/index.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,16 @@
1313
</script>
1414
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
1515
<title>Hub Bound Travel</title>
16+
<meta property="og:type" content="website" />
17+
<meta property="og:url" content="https://hbt.hccs.dev/" />
1618
<meta property="og:title" content="Hub Bound Travel" />
1719
<meta property="og:description" content="NJ→NY transit trends, 2014-2024. From NYMTC Hub Bound Travel reports." />
18-
<meta property="og:image" content="/og.png" />
20+
<meta property="og:image" content="https://hbt.hccs.dev/og.png" />
21+
<meta property="og:image:type" content="image/png" />
22+
<meta property="og:image:width" content="1200" />
23+
<meta property="og:image:height" content="630" />
24+
<meta property="og:image:alt" content="NJ→NY passengers by mode/crossing, 8-9am, Fall business day, 2014-2024" />
25+
<meta name="twitter:card" content="summary_large_image" />
1926
</head>
2027
<body>
2128
<div id="root"></div>

0 commit comments

Comments
 (0)