• Is there any hook, any way to change the canonical url on comments pagination pages in the AMP version?

    Scenario:
    Example link: idinheiro.local/easy-account/comment-page-4?amp#comments

    Currently, the canonical url is idinheiro.local/easy-account/comment-page-4#comments.

    What I would like is that the canonical url for these pages is pointed directly to the main url of the post, which in this example would be: idinheiro.local/easy-account/

    Note: I can’t remove the pagination from the comments.

    Today, I have a filter that informs me that it has pagination in the comments only on AMP pages. On non-amp pages, all comments are loaded on the same page.

    Plugin Automattic’s AMP

    • This topic was modified 3 years, 6 months ago by renanbessa.
    • This topic was modified 3 years, 6 months ago by renanbessa.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change canonical URL in comment pagination AMP’ is closed to new replies.