Commit 5338e69
fix(profile): redirect after successful POST so UI toggle takes effect
view_profile rendered the response inline after saving the form, which
meant UIPreferenceLoader and the beta-banner context processor ran
against the same request that just toggled ui_use_tailwind. The result
showed the previous UI on the success page; only the next request
reflected the change. Switch to Post-Redirect-Get so the success page
renders against a fresh request.
Also prevents form resubmission on refresh.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a51b5d0 commit 5338e69
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
258 | 264 | | |
259 | 265 | | |
260 | 266 | | |
| |||
0 commit comments