Commit b655459
fix: share page renders meta tags before redirect so Twitter shows OG card
The previous redirect() sent a 307 before Twitter's crawler could read
the meta tags. Now renders a minimal HTML page with meta tags + a
<meta http-equiv="refresh"> for client-side redirect. Crawlers read
the OG/Twitter meta, humans get redirected to the swap page.
Also added robots noindex since this page exists only for share cards.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 9c09631 commit b655459
1 file changed
Lines changed: 9 additions & 4 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
37 | 42 | | |
0 commit comments