Closed haadcode closed 7 years ago
This is now not only fixed but I made it a thing:
Here you see a directory opened and if it contains index.html, Orbit will display the website in an iframe. In this case, we're opening one of the examples for ipfs-daemon (top) and start and js-ipfs instance inside Orbit. In the lower picture, you can see Orbit, in Orbit 😁 It's the very same UI as what the Electron version runs (basically that's the UI directory from Electron dropped into Orbit).
cc @jbenet, you asked for this.
Currently when the user opens a directory which contains an index.html file and opens it, it's opened by the file's hash. It should be opened relative to the directory hash so that the page can be displayed like it would be displayed in the browser.
This means, instead of "open Qm...FileHash (index.html)" should be opened as "open Qm...DirectoryHash/index.html".