ENGLISH·COURSE API
    Preparing search index...
    • Resolves the onboarding's destinations from the next query parameter.

      Returns OnboardingDestinations

      The hrefs for step 1, step 2, what follows step 2, and the end of the onboarding

      A course route that sent the learner to the onboarding names itself in next. When that value is a safe course path, both steps carry it forward and the onboarding ends there; otherwise it is ignored: step 2 continues to the first-course step, and an already onboarded learner lands on My learning, exactly as when opened from the landing.

      const { avatarStep, afterOnboarding } = useOnboardingDestinations();
      router.push(avatarStep);