Skip to content

webui incorrectly assumes "localhost" for the gateway #1872

Description

@kallisti5

Describe the bug
The webui assumes "localhost" for the gateway, even though it was accessed on a non-localhost system.

To Reproduce
Steps to reproduce the behavior:

  1. Access an IPFS gateway remotely
  2. Go to 'explore'
  3. Click on 'xkcd'
  4. Pick a comic
  5. Hover over 'View on IPFS Gateway'

Expected behavior
webui gateway host should default to the same host that the webui is accessed via.

Screenshots

Screenshot from 2021-11-03 08-26-42

Desktop (please complete the following information):

  • OS: Arch Linux
  • Browser: Opera

Metadata

Metadata

Assignees

No one assigned

    Labels

    need/analysisNeeds further analysis before proceeding

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions