Vaska,
вместо $(div).load(url); будет
if(url.includes('consult.html')) $(div).load("{:url('consult.html',['goods_id'=>$goods.goods_id])}", function(){
// Membership card
$(this).find('[dstype="mcard"]').membershipCard({type:'shop'});
});
else $(div).load(url);