リンクをクリックすると、をpost
介して送信する必要がありますajax
。問題は、リンクを開いたためにリクエストがドロップされることです。
jQuery('#pagination a').click(function(){
jQuery.post('index.php?option=com_component',
{checked_sites_for_session: jQuery('.selected-site input[type="checkbox"]').map(function () {return this.value;}).get()}
).success(function(){window.location = jQuery(this).attr('href')});
console.log(jQuery(this).attr('href'));
return false;
});
しかし、ここでも問題は(joomlaのおかげで)urlにあり/~user/joomla/index.php/view-sites?view=sites&page=2
ます-それはスラッシュから始まりますが、実際のリンクはですhttp://localhost/~user/joomla/index.php/view-sites?view=sites&page=2
が、ソースには<a href="index.php?option=com_component&view=sites&
。'。$option.'page='。$leftがあります。 '"//....`
したがって、「多目的ドメイン解析ソリューション」が必要です。または、joomlaがURLを変更するのをやめてください。