PageSourceSearch

https://pressthink.org/j/rosen-archive/frontend/utils/reportDeepLink.js?v=3.8.36

js pressthink.org collected 2026-10-02 04:26:15 UTC 663 bytes, 15 lines download raw bytes

1// Allowlisted bridge from the static participation page into the existing
2// in-archive report modal. It removes only parameters this bridge owns so Back
3// returns to the static page and unrelated archive state survives.
4
5export const readReportDeepLink = (href) => {
6  const url = new URL(href);
7  const report = url.searchParams.get('report');
8  const source = url.searchParams.get('source');
9  if (source !== 'participate' || (report !== 'record' && report !== 'problem')) {
10    return { intent: null, cleanHref: href };
11  }
12  url.searchParams.delete('report');
13  url.searchParams.delete('source');
14  return { intent: report, cleanHref: url.toString() };
15};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.