diff --git a/core/includes/pager.inc b/core/includes/pager.inc index 1732f6c..cc69158 100644 --- a/core/includes/pager.inc +++ b/core/includes/pager.inc @@ -241,7 +241,7 @@ function template_preprocess_pager(&$variables) { ); $li_previous['href'] = url($current_path, $options); $li_previous['text'] = $tags[1]; - $li_previous['attributes'] = new Attribute(array('title' => t('Go to previous page'))); + $li_previous['attributes'] = new Attribute(array('title' => t('Go to previous page'), 'rel' => 'previous')); } // Create the "last" and "next" links if we are not on the last page. @@ -252,7 +252,7 @@ function template_preprocess_pager(&$variables) { ); $li_next['href'] = url($current_path, $options); $li_next['text'] = $tags[3]; - $li_next['attributes'] = new Attribute(array('title' => t('Go to next page'))); + $li_next['attributes'] = new Attribute(array('title' => t('Go to next page'), 'rel' => 'next')); $li_last = array(); $options = array( diff --git a/core/modules/system/templates/pager.html.twig b/core/modules/system/templates/pager.html.twig index 1a92b01..d034738 100644 --- a/core/modules/system/templates/pager.html.twig +++ b/core/modules/system/templates/pager.html.twig @@ -73,4 +73,3 @@ {% endif %} -