In-app Marketplace: gracefully handle products with no vendorUrl (#40271)
This commit is contained in:
commit
e4d6933e26
|
@ -22,12 +22,14 @@ export default function ProductListContent( props: {
|
|||
title: product.title,
|
||||
icon: product.icon,
|
||||
vendorName: product.vendorName,
|
||||
vendorUrl: appendURLParams( product.vendorUrl, [
|
||||
[ 'utm_source', 'extensionsscreen' ],
|
||||
[ 'utm_medium', 'product' ],
|
||||
[ 'utm_campaign', 'wcaddons' ],
|
||||
[ 'utm_content', 'devpartner' ],
|
||||
] ),
|
||||
vendorUrl: product.vendorUrl
|
||||
? appendURLParams( product.vendorUrl, [
|
||||
[ 'utm_source', 'extensionsscreen' ],
|
||||
[ 'utm_medium', 'product' ],
|
||||
[ 'utm_campaign', 'wcaddons' ],
|
||||
[ 'utm_content', 'devpartner' ],
|
||||
] )
|
||||
: '',
|
||||
price: product.price,
|
||||
url: appendURLParams(
|
||||
product.url,
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
Comment: More-resilient handling of absent product vendor URLs when browsing WooCommerce > Extensions.
|
||||
|
||||
|
Loading…
Reference in New Issue