External hyper:// link doesn't open properly when opened in Beaker
Describe the Bug When opening a hyper:// link from another browser such as Chrome or Firefox the link will use file associations to launch Beaker but once opened the link has been abbreviated and doesn't function. Copy/paste the link to Beaker works fine.
To Reproduce
- Visit a sample webpage in Chrome or FF
<!DOCTYPE html>
<html>
<body>
<p> A Hyperlink <a href="hyper://6946d4631ea3dade5d26367b96afdf8e93be638349c536e0bd446393c78a61a4/">hyper-link</a> </p>
</body>
</html>
- Click the link
- Browser asks if I want to open in Beaker, click yes
- Beaker Opens the link but, I get a 500 status in the browser
- Clicking on the URL bar displays the link as
hyper://6946..a4/
Expected Behavior Beaker should open the associated link and display the hyperdrive page as usual.
Screenshots I can provide if needed.
Environment
- OS: Windows 10
- Beaker Version: 1.0 Beta 7
Additional Context Checking in the General Logs the following 2 lines are logged:
warn | hyper | hyper-scheme | Failed to open drive undefined
info | browser | init | Second instance opened
I mentioned the issue to Paul on discord, I just wanted to get the bug logged and tracked.
I'm not seemingly able to open a hypedrive in Edge or Brave, When I create an .html file from the code you posted (I think that's what you intended?) and then open it in Edge or Brave and click the link.... nothing happens at all. I'm not sure how to reproduce having Brave/Edge ask me if I want to open the link in Beaker. I have a lot to learn!
That might be due to configuration , in the Beaker Settings there is a section under general called "Browser Settings" in there is the options to "Set Beaker as the default browser for:" with http | hyper | dat as options . I'm guessing they are not selected?
If they are selected then there might be another bug there. Oh thinks for mentioning Edge.. I totally forgot to test in Edge!
I'm not seemingly able to open a hypedrive in Edge or Brave, When I create an .html file from the code you posted (I think that's what you intended?) and then open it in Edge or Brave and click the link.... nothing happens at all. I'm not sure how to reproduce having Brave/Edge ask me if I want to open the link in Beaker. I have a lot to learn!
Thanks for reporting, @leeclarke. We'll add it to the queue.
I'll take a look at the code and try to see if I can figure it out. I'm new to Electron so no promises but untill someone else takes it up it can't hurt to try!