In category listing page I am using quick view. In Quick View, product detail page is displayed in popup. In that popup I am displaying wishlist also.
Wishlist functionality is working fine but its output is getting redirected to popup url.
For Quick View I have referred link -
Wishlist output is getting redirected to popup instead of website url.
<a href="#" data-post='<?php echo $this->helper('Magento\Wishlist\Helper\Data')->getAddParams($_product) ?>' class="action towishlist" data-action="add-to-wishlist"><span>Add to Wishlist</span></a>