Add the nofollow attribute to the rel attribute of the "Show More" link

Created on 19 December 2024, 8 months ago

Request: Please add the nofollow attribute to the rel attribute of the "Show More" link.

I tried adding it manually in the views-infinite-scroll-pager.html.twig template file, but the pager stopped working afterward. Here is the code I modified:

{#
/**
 * @file
 * The views infinite scroll pager template.
 */
#}

{% if items.next %}
<ul{{ attributes }}>
  <li class="pager__item">
    <a class="button" href="{{ items.next.href }}" title="{{ 'Load more items'|t }}" rel="next nofollow">{{ options.button_text }}</a>
  </li>
</ul>
{% endif %}

Could you update the module to accept a second rel attribute, such as nofollow, without breaking functionality? This would be useful for avoiding bot or crawler traffic. Thank you!

Feature request
Status

Active

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024