← All changes
|
backend/views/components/Docs/components/resources/AdditionalResources.jsx
+2
-1
1.4.19
→
1.4.22
View file →
| @@ -1,7 +1,8 @@ | ||
| 1 | 1 | import { useEffect, useState } from 'react'; |
| 2 | 2 | import DiscoResourceCard from './ResourceCard'; |
| 3 | 3 | import SkeletonCard from './SkeletonCard'; |
| 4 | +import withUtm from '../../utils/withUtm'; | |
| 4 | 5 | |
| 5 | 6 | function getThumbnail(post) { |
| 6 | 7 | const featured = post._embedded?.['wp:featuredmedia']?.[0]?.source_url; |
| 7 | 8 | if (featured) return featured; |
| @@ -34,9 +35,9 @@ | ||
| 34 | 35 | read: |
| 35 | 36 | wordCount > 0 |
| 36 | 37 | ? `About ${Math.max(1, Math.ceil(wordCount / 200))} Min Read` |
| 37 | 38 | : 'About 5 Min Read', |
| 38 | - link: post.link, | |
| 39 | + link: withUtm(post.link, 'help-docs', 'blog-post'), | |
| 39 | 40 | imageUrl: getThumbnail(post), |
| 40 | 41 | }; |
| 41 | 42 | } |
| 42 | 43 | |