ENGLISH·COURSE API
    Preparing search index...
    • The transitionTypes a navigation between two routes should carry.

      Parameters

      • from: string | null | undefined

        The current pathname, when there is one

      • href: RouteHref | null | undefined

        Where the navigation goes, as Link and the router accept it

      Returns string[]

      One type for the route pair's motion, or none

      Shaped for Link and router.push: an empty list means "navigate as before", which is also the answer when either side is unknown — a link rendered outside the App Router has no current pathname.

      A destination outside the app — another origin, a mailto:, a bare hash or query — has no route to place, so it carries no type either.