Notifications
Clear all

Missing rel=nofollow attribute for load more link

3 Posts
2 Users
0 Reactions
3,417 Views
(@carstenmeiselbach)
Member Customer
Joined: 8 years ago
Posts: 18
Topic starter  

Hello wpDiscuz-Team,

one important thing for better SEO. Given "Load More"-link, which opens the (paginated) rest the comments to be shown, should come with a rel='nofollow' attribute. With given solution, without the nofollow-attribute, you're going to experiene Duplicate Content problems.

My currenty solution:

== wpdiscuz\templates\comment\comment-form.php

<a class="wc-load-more-link" href="<?php echo $wpdiscuz->helper->loadMoreLink($commentData['last_parent_id'], $post->ID); ?>">
=>
<a rel="nofollow" class="wc-load-more-link" href="<?php echo $wpdiscuz->helper->loadMoreLink($commentData['last_parent_id'], $post->ID); ?>">

Would be good, when this will be part of your code or it would be made available for configuration.

Best regards,

Carsten


   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4213
 

Thank you for this suggestion and for the code. However I don't think this is a good solution. This will block SE indexing of rest comments. There should be more professional solution for such cases, we'll take a look on Google SEO Recommendations and find the best solution.

 


   
ReplyQuote
(@carstenmeiselbach)
Member Customer
Joined: 8 years ago
Posts: 18
Topic starter  

Hello,

you're right about the SE indexing when it's blocked this way. Take a deeper look:

https://happycarb.de/rezepte/backen/low-carb-krustenbrot/?wpdParentID=22357

Your given URL, coming with the question mark url parameter, should be switched to

https://happycarb.de/rezepte/backen/low-carb-krustenbrot/#wpdParentID=22357

With the hast parameter value, the doubled URL problem won't be a problem anymore.

Best regards,

Carsten


   
ReplyQuote
Share:
Scroll to top