Appearance
getProductRoute
Definition
Get product route information for Vue router.
Returns product URL and route informations for resolving SEO url. Use it with combination of <RouterLink> or <NuxtLink> in Vue.js or Nuxt.js projects.
Signature
ts
export function getProductRoute<
T extends { id: string; seoUrls: SeoUrl[] | null }
>(product?: T)
Parameters
| Name | Type | Description |
|---|---|---|
| product | T |