Skip to content
On this page

getProductUrl ​

Definition ​

Get product url. The priority is SEO url and then technical url.

Signature ​

ts
export function getProductUrl<
  T extends {
    id: string;
    seoUrls: SeoUrl[] | null;
  },
>(product?: T): string 

Parameters ​

NameTypeDescription
product
T
product entity

Return type ​

ts
string
getProductUrl has loaded