[eluser]The Questioner[/eluser]
Dear fellow CodeIgnitees,
I've developed an ecommerce site for a client that uses a custom pagination class when showing a list of product thumbnails for each category. This pagination class uses jQuery to
only update the DIV that is used to display the product thumbnails (as opposed to reloading the whole page). Each pagination link points to this Javascript function:
Code:
function GotoAnotherPage(intPage)
//used for main products view pagination
{
//pass page no back and show new contents
//(need to add date/time to URL so that IE doesn't think its a previously cached page)
var datCurrentDate = new Date();
var strURL=strBaseURL+'shop/filter/navigate_to_page/page/'+intPage+'/'+datCurrentDate.getTime();
$('#content_page').html(geturl(strURL));
}
This gives the site a snappier feel (as only the DIV is reloaded) when the pagination is used, but my client is complaining that only the first page is indexed by Google. I'm assuming that this is because of the last line:
Code:
$('#content_page').html(geturl(strURL));
The URL used to update the DIV is passed via AJAX and so doesn't update the main page URL, therefore Google doesn't "see it" as the main page URL doesn't change for each pagination link.
Other than using full, direct URL links for each pagination that will reload the whole page, what else can I do to get Google to index the other pagination pages?