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?: Array<{
      seoPathInfo?: string;
    }>;
  },
>(product?: T): string 

Parameters ​

NameTypeDescription
product
T
product entity

Return type ​

ts
string
getProductUrl has loaded