Commit 8cac7f7
committed
fix: LanguageSwitcher sets cookie before activation and uses href navigation
- Write cookie before dynamicActivateLocale so the SSR request always
carries the new locale even if the dynamic import is slow
- Replace window.location.reload() with href navigation to bypass
browser back-forward cache that can serve stale SSR HTML1 parent 21b3c76 commit 8cac7f7
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
0 commit comments