Skip to content
CtrlK

resolveArdoHref

On this page

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