Tracking stripper removes Reddit context=, which changes what a comment permalink shows #280

Closed
opened 2026-10-04 17:41:33 -04:00 by jared · 1 comment
Owner

stripTrackingParams removes context on reddit.com (src/app/utils/urlTracking.ts:105-107). On Reddit, ?context=N is functional, not tracking: a comment permalink with context=3 shows the three parent comments above it. After stripping, recipients see the comment alone, without the conversation the sender meant to share.

Fix: keep context. Only share_id and rdt are tracking.

More context

Introduced by 5b0d3554 (2026-09-17, #103).

Acceptance criteria: stripTrackingParams('https://www.reddit.com/r/x/comments/abc/def/xyz/?context=3&share_id=1') returns …?context=3; unit test added.


Found in the October 2026 client audit (Playwright against a local Synapse + LiveKit stack, plus code reading). Code refs are at cinny 30e2dbcd, cinny-desktop 8f67ec7, element-call 3b0050e8.

`stripTrackingParams` removes `context` on `reddit.com` (src/app/utils/urlTracking.ts:105-107). On Reddit, `?context=N` is functional, not tracking: a comment permalink with `context=3` shows the three parent comments above it. After stripping, recipients see the comment alone, without the conversation the sender meant to share. **Fix:** keep `context`. Only `share_id` and `rdt` are tracking. ### More context **Introduced by** 5b0d3554 (2026-09-17, #103). **Acceptance criteria:** `stripTrackingParams('https://www.reddit.com/r/x/comments/abc/def/xyz/?context=3&share_id=1')` returns `…?context=3`; unit test added. --- _Found in the October 2026 client audit (Playwright against a local Synapse + LiveKit stack, plus code reading). Code refs are at cinny `30e2dbcd`, cinny-desktop `8f67ec7`, element-call `3b0050e8`._
jared added the bugpriority: lowarea: messaging labels 2026-10-04 17:41:33 -04:00
Author
Owner

Same class: the Instagram entry (utils/urlTracking.ts, hosts: ['instagram.com'], params: ['igsh', 'img_index']) strips img_index, which isn't tracking. It selects which image of a carousel post opens (…/p/<id>/?img_index=3 shows the third photo), so the shared link opens on image 1. The rest of the list looks safe: no t/ref/list/index on YouTube, and X's s/t really are share-tracking there.

Same class: the Instagram entry (`utils/urlTracking.ts`, `hosts: ['instagram.com'], params: ['igsh', 'img_index']`) strips **`img_index`**, which isn't tracking. It selects which image of a carousel post opens (`…/p/<id>/?img_index=3` shows the third photo), so the shared link opens on image 1. The rest of the list looks safe: no `t`/`ref`/`list`/`index` on YouTube, and X's `s`/`t` really are share-tracking there.
jared closed this issue 2026-10-19 16:54:32 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/cinny#280