Showing a tour only after a workspace exists
Wait for the workspace, not the login
A person can sign in before any workspace exists. Show the welcome tour only after a workspace record is present, or the first step points at a sidebar that has not rendered yet.
Use a page rule plus one condition
Set the page rule to the workspace home, such as /w/*, and add the condition workspace.created == true. Steps then wait for their target element and scroll to it. If the workspace is still being created, the tour does not start; it starts on the next visit that matches.
Illustrative example
A teacher signs up and is asked to name a class workspace.
- Before: tour fired on
/homewith selector#ws-sidebar. The sidebar was absent, the step waited, and the person left. Export showed a stop at step 1. - After: page rule
/w/*plusworkspace.created == true. The person names the class, lands on/w/room-4, and the tour starts. Step 1 selector#ws-sidebaris present. - Verified result: the export shows the tour starting only on
/w/*pages, with no step-1 stops.
Reusable check
- Sign up and stop before creating a workspace.
- Visit
/homeand confirm no tour appears. - Create the workspace, land on
/w/*, and confirm step 1 shows.
Exception
If a person is invited into an existing workspace but has never created one, the condition is still true for that workspace. The tour will fire for them, which is correct. If you want a different path for invited members, use a separate tour scoped to the invite event, not the workspace-creation marker.
Related: Onboarding Tours features.
