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
| Name | Type | Required |
|---|---|---|
to | string | Yes |
page | { base: string; path: string } | Yes |
routePaths | ReadonlySet<string> | No |
Returns
string