Skip to content

Function: resolveCollectionItemHref() ​

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;