diff -u b/core/modules/views/templates/views-view-table.html.twig b/core/modules/views/templates/views-view-table.html.twig --- b/core/modules/views/templates/views-view-table.html.twig +++ b/core/modules/views/templates/views-view-table.html.twig @@ -75,14 +75,14 @@ {%- if column.wrapper_element -%} <{{ column.wrapper_element }}> {%- if column.url -%} - {{ column.content }}{{ column.sort_indicator }} + {{ column.content }}{{ column.sort_indicator }} {%- else -%} {{ column.content }}{{ column.sort_indicator }} {%- endif -%} {%- else -%} {%- if column.url -%} - {{ column.content }}{{ column.sort_indicator }} + {{ column.content }}{{ column.sort_indicator }} {%- else -%} {{- column.content }}{{ column.sort_indicator }} {%- endif -%} diff -u b/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc --- b/core/modules/views/views.theme.inc +++ b/core/modules/views/views.theme.inc @@ -491,7 +491,6 @@ $query['order'] = $field; $query['sort'] = $initial; $link_options = array( - 'attributes' => array('title' => $title), 'query' => $query, ); // It is ok to specify no URL path here as we will always reload the @@ -499,6 +498,7 @@ $url = new Url('', [], $link_options); $variables['header'][$field]['url'] = $url->toString(); $variables['header'][$field]['content'] = $label; + $variables['header'][$field]['title'] = $title; } $variables['header'][$field]['default_classes'] = $fields[$field]->options['element_default_classes']; diff -u b/core/themes/classy/templates/views/views-view-table.html.twig b/core/themes/classy/templates/views/views-view-table.html.twig --- b/core/themes/classy/templates/views/views-view-table.html.twig +++ b/core/themes/classy/templates/views/views-view-table.html.twig @@ -75,14 +75,14 @@ {%- if column.wrapper_element -%} <{{ column.wrapper_element }}> {%- if column.url -%} - {{ column.content }}{{ column.sort_indicator }} + {{ column.content }}{{ column.sort_indicator }} {%- else -%} {{ column.content }}{{ column.sort_indicator }} {%- endif -%} {%- else -%} {%- if column.url -%} - {{ column.content }}{{ column.sort_indicator }} + {{ column.content }}{{ column.sort_indicator }} {%- else -%} {{- column.content }}{{ column.sort_indicator }} {%- endif -%}