Basically the same question was asked here: Magento 2 shows current product as recently viewed product but the answer there doesn't apply for Magento 2.2 versions (or which ever version introduced the
recently viewed widget as a
So I'm wondering if anyone has an idea how to remove the current product (which the customer is viewing on the product view page) from the recently viewed widget which is placed on the product view page?
I've tracked the functionality to
Magento_Catalog/ui_component/widget_recently_viewed.xml and to the template file
Magento_Catalog/web/template/product/list/listing.html which calls the
filteredRows function from
But I'm not sure how to exclude the current product from the data source, so any help would be appreciated.
EDIT This seems to be solved by default in Magento 2.3.3+ versions.