Commit 7be4c3b
committed
fix(webapp): take the impersonate route out of the admin layout
The admin layout gates on requireSuper via getUserId, which resolves to the
impersonated user while impersonating — so starting on a second target ran that
gate against the target and it answered with its own redirect to /. The switch
worked only because the router prefers the deepest redirect, which is too subtle
a thing for an auth path to depend on.
The trailing underscore keeps the route at /admin/impersonate while opting it out
of the layout. Nothing is lost: the route only ever redirects, so it never
rendered inside it.1 parent 4f7fc96 commit 7be4c3b
1 file changed
Lines changed: 12 additions & 0 deletions
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
14 | 26 | | |
15 | 27 | | |
16 | 28 | | |
| |||
0 commit comments