Commit f2c9775
fix: use JS redirect instead of meta refresh for share page
Meta refresh content="0" was instant — Twitter's crawler likely
followed the redirect before reading the meta tags. Replaced with
a JS redirect (window.location.href) which crawlers don't execute.
Crawlers read the HTML meta tags, browsers get redirected via JS.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 803027a commit f2c9775
1 file changed
Lines changed: 6 additions & 4 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
0 commit comments