Read the current route: the matched rule's name, its params, the app-owned sandboxPath, and the read-only platform prefix fields (mode, provider, namespace, repository, ref) — e.g. to tell /edit from /present.

  • Returns {
        mode: string;
        name: undefined | string;
        namespace: string;
        params: RouteParams;
        provider: string;
        ref: string;
        repository: string;
        sandboxPath: string;
    }