Commit 71ed2bd
committed
feat(onboarding): support TI_ONBOARDING_DEFAULT_SITE redirect
When the TI_ONBOARDING_DEFAULT_SITE constant is defined, the
post-activation redirect now lands on the preview/import screen for
that site (admin.php?page=neve-onboarding&site=<slug>) instead of the
default search/welcome screen. The onboarding store resolves the
?site=<slug> query param against the bootstrapped sites list (across
all builders) and starts at step 3 with currentSite preset; if the
slug is unknown the app falls back to the existing search screen.
This lets distributions and embedded environments (e.g. WordPress
Playground) deep-link a user straight to the import flow for a chosen
starter site.
Made-with: Cursor1 parent 9087799 commit 71ed2bd
2 files changed
Lines changed: 29 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
410 | 411 | | |
411 | 412 | | |
412 | 413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
19 | 34 | | |
20 | 35 | | |
21 | 36 | | |
22 | 37 | | |
23 | | - | |
| 38 | + | |
24 | 39 | | |
25 | 40 | | |
26 | 41 | | |
27 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
28 | 45 | | |
29 | 46 | | |
30 | 47 | | |
| |||
0 commit comments