How to change the canonical function for category page in Magento 2?Magento 2 Override Product Canonical UrlHow to get magento Category hierarchy?Add page number to canonical url for categories on 1.9.0.1Move from Opencart to Magento - Category url structure not matchingHow 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 pageM2 Add canonical tag to Advanced Search pageHow to add canonical tag for all cms pages magento 2?Add canonical link to CMS page | Trailing slash added after URL

Not using 's' for he/she/it

Where did Heinlein say "Once you get to Earth orbit, you're halfway to anywhere in the Solar System"?

How to explain what's wrong with this application of the chain rule?

What was the exact wording from Ivanhoe of this advice on how to free yourself from slavery?

Aragorn's "guise" in the Orthanc Stone

Why electric field inside a cavity of a non-conducting sphere not zero?

Create all possible words using a set or letters

Count the occurrence of each unique word in the file

Why Shazam when there is already Superman?

Is the U.S. Code copyrighted by the Government?

What is Cash Advance APR?

Why should universal income be universal?

Yosemite Fire Rings - What to Expect?

Which one is correct as adjective “protruding” or “protruded”?

Open a doc from terminal, but not by its name

Melting point of aspirin, contradicting sources

Is this toilet slogan correct usage of the English language?

How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?

Problem with TransformedDistribution

Does the expansion of the universe explain why the universe doesn't collapse?

How should I respond when I lied about my education and the company finds out through background check?

How do I color the graph in datavisualization?

What does chmod -u do?

Longest common substring in linear time



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


Magento 2 Override Product Canonical UrlHow to get magento Category hierarchy?Add page number to canonical url for categories on 1.9.0.1Move from Opencart to Magento - Category url structure not matchingHow 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 pageM2 Add canonical tag to Advanced Search pageHow to add canonical tag for all cms pages magento 2?Add canonical link to CMS page | Trailing slash added after URL













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










share|improve this question
























  • magento.stackexchange.com/questions/245313/…

    – Ronak Rathod
    Mar 18 at 6:45















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










share|improve this question
























  • magento.stackexchange.com/questions/245313/…

    – Ronak Rathod
    Mar 18 at 6:45













2












2








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










share|improve this question
















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







magento2 category canonical






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday









Ronak Rathod

57011




57011










asked Mar 13 at 12:33









ParthaviParthavi

1029




1029












  • magento.stackexchange.com/questions/245313/…

    – Ronak Rathod
    Mar 18 at 6:45

















  • magento.stackexchange.com/questions/245313/…

    – Ronak Rathod
    Mar 18 at 6:45
















magento.stackexchange.com/questions/245313/…

– Ronak Rathod
Mar 18 at 6:45





magento.stackexchange.com/questions/245313/…

– Ronak Rathod
Mar 18 at 6:45










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

Sum ergo cogito? 1 nng

三茅街道4182Guuntc Dn precexpngmageondP