Function: resolveCollectionItemHref()

Source: 1.0.0-rc.14 · ecc10ae38a81 (uncommitted changes)

ts
function resolveCollectionItemHref(collectionKey, item): object;

Defined in: packages/valaxy/client/composables/collections.ts:18

Resolve the href and external status for a collection item. link takes precedence over key. Internal links start with /.

Parameters

collectionKey

string

item

key?

string

string

Returns

object

href

ts
href: string;

isExternal

ts
isExternal: boolean;