ipfs-webui: Improve UI when user tries to open missing file

(found this while working on unbundling webui from companion)

“Not Found” error for Files tab could be better 😃

  1. Open http://127.0.0.1:8080/ipfs/QmXc9raDM1M5G5fpBnVyQ71vR4gbnskwnB9iMEzBuLgvoZ/#/files/I_AM_NOT_HERE.jpg (or any other filename that is not present in your MFS)

  2. See this odd state with no buttons and bogus error about adding: image

This may happen if someone bookmarks or copies URL to another machine without pointing webui at the same IPFS node.

We should either display a meaningful message or just silently redirect to the nearest MFS root.

### Tasks
- [ ] Display meaningful error message when file cannot be loaded
- [ ] Allow user to navigate back to paret files page easily

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Comments: 15 (12 by maintainers)

Most upvoted comments

@wuniversales this is unrelated, but you should use ipfs-404.html for IPFS gateway to pick it up as your 404 page, as noted in release notes

If we remove the Files-specific UI elements per https://github.com/ipfs-shipyard/ipfs-webui/issues/961#issuecomment-694930636 (image), then we don’t include breadcrumbs at all.