{capture name=surl assign=surl}{if $settings.enable_locations && in_array($v.depending.caption2, $location_fields)}javascript:;"
onclick="changeLocation('{$live_site}', '{$v.depending.caption2}|{$t.name|rawurlencode}')
{else}
{if $seo_settings.enable_mod_rewrite}{if !isset($post_array[$v.depending.caption2])}
{$constructed_url|replace:$sfield:$field_string}{else}
{capture name=crt_field_string assign=crt_field_string}{$separator}{$v.depending.caption2}={if $post_array[$v.depending.caption2]|stristr:$t.name|rawurlencode}{$post_array[$v.depending.caption2]|lower|replace:{$t.name|lower}:''|trim:'|'}{else}{$t.name|lower|replace:'/':'_'|rawurlencode}
|{$post_array[$v.depending.caption2]|lower}{/if}{/capture}{$constructed_url|replace:$sfield|lower:$crt_field_string}{/if}{else}{if !isset($post_array[$v.depending.caption2])}
{$constructed_url}{$separator}{$v.depending.caption2}={$t.name|replace:'/':'_'|rawurlencode}
{else}{capture name=crt_field_string assign=crt_field_string}{if $post_array[$v.depending.caption2]|stristr:$t.name|rawurlencode}{$post_array[$v.depending.caption2]|lower|replace:{$t.name|lower}:''|trim:'|'}{else}{$t.name|lower|replace:'/':'_'|rawurlencode}|{$post_array[$v.depending.caption2]|lower}{/if}{/capture}{$constructed_url}{$separator}{$v.depending.caption2}={$crt_field_string}{/if}{/if}{/if}{/capture}
{$constructed_url|replace:$sfield|lower:$crt_field_string}{/if}
<input type="checkbox" name="{$v.depending.caption2}_{$t.name|rawurlencode}" {if stristr($post_array[$v.depending.caption2], $t.name|lower)}checked{/if}
onclick="window.location='{$surl}'" />
https://site.ru/search/?location=москва®ion=подольск|ивантеевка|москва
https://site.ru/search/?location=москва®ion=подольск|ивантеевка|ивантеевка|москва
и при каждом клике на check который нужно снять будет добавлено повторение, а по идее должно убраться и стать такого видаhttps://site.ru/search/?location=москва®ion=подольск|москва