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): stringParameters ​
| Name | Type | Description | 
|---|---|---|
| product | T  | product entity | 
Return type ​
ts
string