diff --git a/assets/js/blocks/mini-cart/edit.tsx b/assets/js/blocks/mini-cart/edit.tsx index 5441474f712..d5b3a687d48 100644 --- a/assets/js/blocks/mini-cart/edit.tsx +++ b/assets/js/blocks/mini-cart/edit.tsx @@ -26,6 +26,7 @@ import { select } from '@wordpress/data'; import classNames from 'classnames'; import { cartOutline, bag, bagAlt } from '@woocommerce/icons'; import { Icon } from '@wordpress/icons'; +import { WC_BLOCKS_IMAGE_URL } from '@woocommerce/block-settings'; /** * Internal dependencies @@ -237,8 +238,8 @@ const Edit = ( { className="wc-block-editor-mini-cart__drawer-image" src={ isRTL() - ? '/wp-content/plugins/woocommerce-blocks/images/blocks/mini-cart/cart-drawer-rtl.svg' - : '/wp-content/plugins/woocommerce-blocks/images/blocks/mini-cart/cart-drawer.svg' + ? `${ WC_BLOCKS_IMAGE_URL }blocks/mini-cart/cart-drawer-rtl.svg` + : `${ WC_BLOCKS_IMAGE_URL }blocks/mini-cart/cart-drawer.svg` } alt="" />