ENGLISH·COURSE API
    Preparing search index...
    • Whether the router has a route for this path, judged by its first segment.

      Parameters

      • path: string

        The path after the locale segment, leading slash included

      Returns boolean

      true when a route exists for it

      Only the first segment is examined, and deliberately. What follows is data, not routing: an unknown course slug or lesson id is the application's business, and it answers with an inline recovery state rather than a missing page. Pre-empting that here would replace a helpful screen with a bare 404.

      The home — an empty path — is always known.

      isKnownRoutePath("/privacy");        // true
      isKnownRoutePath("/courses/typo"); // true — the page explains it
      isKnownRoutePath("/error"); // false