Improve handling of the 'in_trash' query parameter

Created on 27 November 2025, about 1 month ago

Problem/Motivation

The in_trash query parameter is prone to "leaking" into all the links displayed on pages that have it.

Proposed resolution

1) Fix the outbound route processor to append this parameter to all generated links only on the entity's canonical page, since that was its intended purpose (see 🐛 Trash breaks any local tabs on trashed content Active ).
2) Harden all delete forms to ensure that content can not be accidentally deleted permanently if they're accessed with the ?in_trash=1 query string

Remaining tasks

Review.

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇷🇴Romania amateescu

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.

No activities found.

Production build 0.71.5 2024