Commit 6d8c647
committed
fix: read announcement id from live URL instead of serialized SSR data
The announcement id was extracted in the universal load function and serialized
into SSR HTML. When a CDN cached one announcement URL and served it for another,
the baked-in id caused the wrong announcement to render on direct page load.
Now selectedId derives from page.url (the actual browser URL) rather than
data.id, making the page immune to CDN cache cross-contamination.1 parent 0b75d6c commit 6d8c647
2 files changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
0 commit comments