Table sort ignores "field", always adds header title as order query parameter

Created on 9 January 2018, about 7 years ago
Updated 26 January 2025, about 19 hours ago

If I create a sortable table with the following header definition then the rendered link of "Foo bar" table header contains the ?order=Foo%20bar instead of ?order=baz.

    $headers['foobar'] = [
      'data' => $this->t('Foo bar'),
      'field' => 'baz',
      'sort' => 'desc',
    ];
🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component

theme system

Created by

🇭🇺Hungary mxr576 Hungary

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024