Don't jump to first record in list after workflow when the list is filtered

I was trying to run a workflow after pressing an actionbutton. The records were filtered.

I was expecting to return back to the same record after workflow

Instead I’ve got to the first record.

Original video by Marcel:

Original issue:

I have tested it without filtering and it worked well, but with filtering it didn’t work for me as well.

Fixed in Master 4462.