Commit a62dfc5
🐛 Fixed newsletter reply-to verification links failing after signin
ref https://linear.app/ghost/issue/ONC-1658/
- when a customer clicks a newsletter reply-to verification email in a
browser that isn't signed in to admin, the link sends them through the
signin redirect introduced in #27316 — but the post-signin replay used
router.transitionTo, which drops query params not declared on the
resolved route's controller
- react-fallback is a wildcard route with no queryParams config, so the
?verifyEmail=<token> param was silently stripped on replay; the React
verify-on-mount handler in newsletters.tsx then no-ops because the
token is missing, and the customer thinks the address didn't save
(root cause for ONC-1618 and ONC-1642)
- swap to windowProxy.replaceLocation, which is already the auth-flow
primitive used in authenticated.js and application.js — the hard
navigation feeds the URL straight to the browser and bypasses
Ember's URL-rebuilding entirely
- e2e covers the round-trip; verified to fail on unfixed code1 parent caca37d commit a62dfc5
2 files changed
Lines changed: 30 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
38 | 61 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
94 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
95 | 101 | | |
96 | 102 | | |
97 | 103 | | |
| |||
0 commit comments