How to change the canonical function for category page in Magento 2?How to make canonical...

What wound would be of little consequence to a biped but terrible for a quadruped?

What happens with multiple copies of Humility and Glorious Anthem on the battlefield?

Deleting missing values from a dataset

Is a lawful good "antagonist" effective?

Can you reject a postdoc offer after the PI has paid a large sum for flights/accommodation for your visit?

When two POV characters meet

Touchscreen-controlled dentist office snowman collector game

Examples of odd-dimensional manifolds that do not admit contact structure

If Invisibility ends because the original caster casts a non-concentration spell, does Invisibility also end on other targets of the original casting?

Should QA ask requirements to developers?

Make a transparent 448*448 image

What has been your most complicated TikZ drawing?

Excess Zinc in garden soil

Why don't MCU characters ever seem to have language issues?

Best approach to update all entries in a list that is paginated?

Am I not good enough for you?

What does it mean when multiple 々 marks follow a 、?

Is "history" a male-biased word ("his+story")?

Unreachable code, but reachable with exception

Why do Australian milk farmers need to protest supermarkets' milk price?

Word for a person who has no opinion about whether god exists

Is it true that real estate prices mainly go up?

Why does Deadpool say "You're welcome, Canada," after shooting Ryan Reynolds in the end credits?

Can the druid cantrip Thorn Whip really defeat a water weird this easily?



How to change the canonical function for category page in Magento 2?


How to make canonical full/path/with/category/product-url?How to add canonical tag for product pages as domainname.com/category/subcategory/product.htmlRemove trailing slash in canonical url for Magento home pageMagento 2 - Self referring canonical for custom pageCanonical url issue in magento 2How to add canonical tag for all cms pages magento 2?How to get secure url canonical in magentoMagento2: Can we add current URL in “Scripts and Style Sheets”?How to remove default generated canonical tag in category page?Add canonical link to CMS page | Trailing slash added after URL













0















I want to add custom url to 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










share|improve this question





























    0















    I want to add custom url to 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










    share|improve this question



























      0












      0








      0








      I want to add custom url to 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










      share|improve this question
















      I want to add custom url to 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







      magento2 category canonical






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 3 mins ago









      magefms

      1,485224




      1,485224










      asked 15 hours ago









      ParthaviParthavi

      729




      729






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "479"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f265708%2fhow-to-change-the-canonical-function-for-category-page-in-magento-2%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f265708%2fhow-to-change-the-canonical-function-for-category-page-in-magento-2%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

          How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

          變成蝙蝠會怎樣? 參考資料 外部連結 导航菜单Thomas Nagel, "What is it like to be a...