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.