Function: resolveCollectionItemHref() ​

Source: 1.1.0 · e3417e89b638

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;