From 306551103044e990125e44acff0fed4c26e5b8bf Mon Sep 17 00:00:00 2001 From: Randall Naar Date: Tue, 1 Sep 2026 13:23:48 -0400 Subject: [PATCH] Removed blinding fragment from url when passed into search bar or scanned by camera. --- client/src/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/app.js b/client/src/app.js index eced4bbc..326608f4 100644 --- a/client/src/app.js +++ b/client/src/app.js @@ -146,6 +146,9 @@ export const dashboardNewBlocks = (page$, latestBlock$) => ? latestBlock$.skip(1) : O.empty()) +export const dropBlindingFragment = query => + query.includes('#blinded=') ? query.split('#')[0] : query + export const parseTipHeight = text => { const normalized = typeof text == 'string' ? text.trim() : text , height = typeof normalized == 'string' && /^\d+$/.test(normalized) @@ -828,7 +831,7 @@ export default function main( , pushedtx$.map(txid => ({ type: 'push', pathname: `/tx/${txid}` })) , selectBlockGridTx$.map(txid => ({ type: 'push', pathname: `/tx/${txid}` })) , updateQuery$.map(([ pathname, hash, qs ]) => ({ type: 'replace', pathname, hash, search: qs, state: { noRouting: true } })) - , searchQuery$.map(q => ({ type: 'push', pathname: '/search', search: `q=${encodeURIComponent(q)}` })) + , searchQuery$.map(q => ({ type: 'push', pathname: '/search', search: `q=${encodeURIComponent(dropBlindingFragment(q))}` })) ) dbg({ goBlocks$, goBlock$, goTx$, goAddr$, togTx$, page$, lang$, vdom$, moreBlocks$