Answer the question
In order to leave comments, you need to log in
How to make canonical links on joomshopping pagination pages?
Catalog category pages have an address like /parfumeriya.html?start=100 The
canonical link should be /parfumeriya.html
I found the code that adds the canon. link (insert in category_default.php):
<?php $document = JFactory::getDocument(); $docstart = JRequest::getInt('start',0); $docroute = rtrim(JURI::root(), '/').JRoute::_('index.php?option=com_jshopping&controller=category&task=view&category_id=' . $this->category->category_id . ''); if($docstart > 0) { $document->addHeadLink($docroute, 'canonical', 'rel', ''); }?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question