Improve handling of the 'in_trash' query parameter.

Closes #3560348

Merge request reports

Loading