2

How to add custom url Using canonical function

Code:

if ($this->_categoryHelper->canUseCanonicalTag()) {
    $this->pageConfig->addRemotePageAsset(
    $category->getUrl(),
    'canonical',
   ['attributes' => ['rel' => 'canonical']]
  );
}

Can any one help i want to add page limit to given url

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.