function homeUrl
homeUrl(
handle: string,
path?: string
): string | null

Returns a link to path on handle's home instance, their profile there by default, or null for a local user. The host in a handle is the home's API, not necessarily its pages, so the link goes through GET /api/users/:key/home, which redirects to them.

Parameters

handle: string
optional
path: string

Return Type

string | null

Usage

import { homeUrl } from "src/utils/auth/home.ts";