Commit 545baf4
authored
fix(ui): prevent duplicate nav sidebar when iframe navigates away from auth pages (#63873)
When a user opens a Security panel (e.g. Users) and clicks the Airflow
logo inside the embedded FAB iframe, the iframe navigates to '/' which
causes the React SPA to render inside the iframe, including its own Nav
sidebar. This produces a duplicate navigation bar alongside the outer
app's sidebar.
Fix: before calling navigate('/'), set iframe.src = 'about:blank' to
immediately clear the iframe content so the inner React app has no
chance to render its Nav. A isRedirecting ref guards against the extra
onLoad event that setting src to about:blank would otherwise trigger.
Closes #638051 parent 0b2efb9 commit 545baf4
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
46 | 54 | | |
47 | 55 | | |
48 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
49 | 61 | | |
50 | 62 | | |
51 | 63 | | |
| |||
0 commit comments