ipfs / ipfs/kubo

dir-index-html: directory listings contain wrong links

Open
#8,813 1 comment 0 reactions 0 assignees View on GitHub
P3 status/blocked
Dominant language
Go
Stars
17.1k
Forks
3.2k
Avg merge
3d 18h
Merged PRs (30d)
11

Description

**Describe the bug**
I use the in brave integrated ipfs functionality which includes the ipfs companion.

When clicking on an ipns enabled link, like `http://x86-64.archlinux.pkg.pacman.store/iso` it will redirect me to `ipns://x86-64.archlinux.pkg.pacman.store/iso` which looks exactly how it should.

But the listing of directories on this page contain wrong links in this case, like `http://x86-64.archlinux.pkg.pacman.store.ipns.localhost:48084/iso/2021.07.01`. They will work, but completely change the layout of the URL.

I'm not sure where the listing is created, and if the companion or the brave browser just fails to instruct the part of the ipfs eco system to use other links?

**To Reproduce**
Steps to reproduce the behavior:
1. Go to `http://x86-64.archlinux.pkg.pacman.store/iso`
2. Hover over any link.
3. See links containing `http://` `localhost` and the port.

**Expected behavior**
Keep the users in the `ipns://` URL space.

**Desktop (please complete the following information):**
- OS: Fedora 34
- Browser Brave
- Version Version 1.26.74 Chromium: 91.0.4472.124 (Official Build) (64-bit)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.