There is a <link>
, you need <link href="http://сайт.ру/odeyala/?filter_ocfilter=43:4078;42:484" rel="canonical" 1="">
cut the link, that is, href="http://сайт.ру/odeyala/
get this type of href
$(function() { $("#aaa").each ( function() { alert ( $(this).attr ( "href" ).substring ($(this).attr ( "href" ).split('/?') ) ); }); });