Aller au contenu
CtrlK

resolveArdoHref

Sur cette page
Cette référence API est générée à partir des commentaires TypeScript en anglais. Les noms, signatures et exemples correspondent au paquet publié.

Resolve a link target to the URL an <a> needs. Pages live in folders, so page links end with a slash and reach the page without a host redirect.

import { resolveArdoHref } from "ardo/runtime"

resolveArdoHref(to: string, page: {
    base: string;
    path: string;
}, routePaths?: ReadonlySet<string>): string

Parameters

NameTypeRequired
tostringYes
page{ base: string; path: string }Yes
routePathsReadonlySet<string>No

Returns

string