Redirect PeerWeb ORC URLs to bittorrent handle#322
Redirect PeerWeb ORC URLs to bittorrent handle#322cp89cyber wants to merge 3 commits intoAgregoreWeb:masterfrom
Conversation
RangerMauve
left a comment
There was a problem hiding this comment.
Hey there, thanks for the PR. Mind also posting a screenshot of what it looks like? I haven't been able to get any peerweb sites to load 😅
|
Updated per review feedback:
On the earlier
I can’t attach a successful page screenshot from this environment because it’s headless (no desktop Electron window to capture), and the public PeerWeb demo hashes were not consistently seeded during verification, so there wasn’t a stable rendered page to screenshot. |
|
I'd rather not merge something we can't consistently load since it'd be a broken feature for anybody that tries it. Lets wait for peerweb to become more reliable or for some other fix. |
Summary
rewritePeerWebURLhelper that turnspeerweb.lol/?orc=links intobittorrent://URLs, preserving other query params, fragments, and non-root pathsWindow.loadURLandwebContentsnavigation events so both programmatic and user-driven navigation are rewritten before the page loadsbt-protocolcompatibility adjustments so rewritten URLs actually loadfixes Get peerweb.lol sites loading as
bittorrent://#319