Redirect list To column sorts on node number rather than on redirect string

Created on 24 January 2024, 5 months ago

Problem/Motivation

If I view the list of all redirects on the website, I cannot sort the To column based on the redirect string.

Steps to reproduce

  1. Go to simplytest.me
  2. In the field, type Drupal
  3. From the list, select Drupal core
  4. Click add project
  5. In the new field, type redirect
  6. From the list, select redirect
  7. Click the button to create the site
  8. Login as admin
  9. If manage is not the active administration menu, click Manage
  10. Click Content
  11. Click +Add content
  12. In the title field, type Node One
  13. Click URL Alias
  14. In the alias field, type /one
  15. Click Save
  16. Repeat Click Content through Click Save for Node Two:
  17. Click Content
  18. Click +Add content
  19. In the title field, type Node Two
  20. Click URL Alias
  21. In the alias field, type /two
  22. Click Save
  23. Repeat Click Content through Click Save for Node Three through Node Five, changing the title and alias each time as was done for Node Two
  24. Repeat Click Content through Click Save for Node Six but skip the two alias steps (so no /six alias)
  25. Go to /admin/config/search/redirect
  26. Click +Add Redirect
  27. From NodeOne to /one
  28. Click Save
  29. Click +Add Redirect
  30. From NodeTwo to /two
  31. Click Save
  32. Click +Add Redirect
  33. From NodeThree to /node/3
  34. Click Save
  35. Click +Add Redirect
  36. From NodeFour to /four
  37. Click Save
  38. Click +Add Redirect
  39. From NodeFive to /node/5
  40. Click Save
  41. Click +Add Redirect
  42. From NodeFive to /node/6
  43. Click Save
  44. At the top of the From column, click the sequence icon

    Expected and actual results: the From column is sorted alphabetically, with /NodeFive as the first item and /NodeTwo as the last item

  45. At the top of the To column, click the sequence icon

    Expected result: the To column is sorted alphabetically, with /five as the first item and /two as the last item
    Actual result: the To column is sorted by node number

  46. At the top of the To column, click the arrow icon

    Expected result: the To column is sorted alphabetically, with /two as the first item and /five as the last item
    Actual result: the To column is sorted by node number

  47. Proposed resolution

    Produce the expected result.

    Remaining tasks

    User interface changes

    API changes

    Data model changes

πŸ› Bug report
Status

Active

Version

1.9

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States Charles Belov San Francisco, CA, US

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

Comments & Activities

Production build 0.69.0 2024