Issues viewing safe://dweb with SB 0.15.2
See original GitHub issueI built 0.15.2 to try it out with safe://dweb
before I announce a new post and see quite a few issues. There are now three versions of safe://dweb
on the shared vault so it might be a good test for bugs and/or to highlight things that need to be done differently for websites to work on SAFE.
Ideally a versioned/pWeb static website like this would ‘just work’ but I’m not sure if that will be possible, so this is potentially a place to highlight things that work on the web but not SAFE, and how to fix them.
The kinds of things I’m seeing are shown below (using the shared vault):
Default (latest version)
- load
safe://dweb
: page displays but styles are not loaded - click on ‘Blog’ at top of page: ‘index.html’ is not loaded so SB shows file listing
- click on ‘index.html’: page displays correctly and then disappears, and then shows 404
- reload the page: same happens again
- click on ‘Blog’ at top of page: page displays correctly
- click on ‘Why Solid on SAFE?’: the post displays correctly
- page navigation links (Home, About, Blog) now seem to work and pages display correctly
- click ‘Blog’ > ‘Why Solid on SAFE?’ > ‘Back to Articles’ (at bottom of page): page doesn’t load index.html and instead displays directory listing
This is before trying to step back through versions.
Try versioning
Clean tab:
- visit ‘safe://dweb’: styles don’t load (as above)
- click
<
for previous version: address bar shows?v=1
and the page loads properly (ie including styles) - click
<
again: address bar updates to?v=0
and page renders index.html as text (not HTML).
That’s enough for now!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:9
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Trying out
safe://solid-filemanager
which worked fine with 0.15.1, I can’t get any page to load as HTML. Typing any of the following into the address bar all show the HTML of index.html as text rather than rendering the HTML:Same when moving back and forward through versions with
<
and>
Note:
safe://dweb
is built using React-staticsafe://solid-filemanager
is built using React15.1 just assumed everything was text/html. We added proper mimetype detection with 15.2, so this issue was just masked prior, I think.
Good to hear that’s going now. 👍