• Resolved lfedele

    (@lfedele)


    Dear support,
    as you can see from the screenshot you find here, the page shows a rel=”next” attribute even if there’s no page 2, could you help, please?

    Thanks in advance.

    Kind regards

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @lfedele,

    Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.

    Please check the screenshot; there is Yoast mentioned in it.
    https://i.rankmath.com/i/ZS5utI

    Can you please open a new support thread with them so they can assist you with this?

    Hope that helps.

    Thread Starter lfedele

    (@lfedele)

    Hello @rankmathteam,
    you’re right, it was the wrong screenshot, before our migration to your plugin. I just updated it, for the issue did nos change.

    Hope you can help.

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @lfedele,

    We tried to follow the URL of that tag and it’s indeed loading a second page for the glossary. That page might not be visible immediately but the page is clearly present on the website.

    If you would like to disable this you can add the following filter: https://rankmath.com/kb/filters-hooks-api-developer/#disable-adjacent-lins

    Don’t hesitate to get in touch if you have any other questions.

    Thread Starter lfedele

    (@lfedele)

    Hello @rankmathteam,
    thank you for your support, what if I wanted to apply it to that specific case only? I would like to keep it working for the blog for example.

    Thanks.

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @lfedele,

    Please try applying the following filter to the website to disable this only on this page:
    add_filter( 'rank_math/frontend/disable_adjacent_rel_links', function() { $url = home_url( $_SERVER['REQUEST_URI'] ); if( strpos( 'glossario', $url ) ) { return true; } return false; });

    Hope this helps solve your issues.

    Don’t hesitate to get in touch if you have any other questions.

    Thread Starter lfedele

    (@lfedele)

    Hello @rankmathteam,
    thank you, while the code mentioned at the url previously provided works, this last one unfortunately doesn’t. I double checked but nothing changed.

    Any suggestion?

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @lfedele,

    Please use the following code instead:
    $url = home_url( $_SERVER['REQUEST_URI'] ); if( strpos( $url, 'glossario' ) !== false ) { add_filter( 'rank_math/frontend/disable_adjacent_rel_links', '__return_true'); }

    This should work to set the page without the adjacent links.

    Don’t hesitate to get in touch if you have any other questions.

    Thread Starter lfedele

    (@lfedele)

    Hello @rankmathteam,
    it worked, thank you so much!

    Plugin Support Rank Math Support

    (@rankmathteam)

    Glad that helped @lfedele,

    Please feel free to create a new forum topic in case you need our assistance with anything else.

    Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Wrong Rel Next Attribute’ is closed to new replies.