Skip to content

Doesn't redirect open tabs with *.localhost urls to public gateway  #894

@RubenKelevra

Description

@RubenKelevra

Describe the bug
If there's an open tab, with an URL like http://cluster.ipfs.io.ipns.localhost/ and refreshed while the local gateway is unavailable (detected by the plugin) there would be just an error page showing "err connection refused".

When URLs like this are open in a new tab, the same thing occurs.

To Reproduce
Steps to reproduce the behavior:

  1. Disable local gateway
  2. Click on a link like this
  3. See error "ERR_CONNECTION_REFUSED"

Expected behavior
The plugin will recognize the IPNS URL and the status of the local gateway and rewrite the URL to load it from a public gateway instead.

Screenshots
Screenshot_20200613_004939

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Brave
  • Version: 1.9.80 Chromium: 81.0.4044.138 (Official Build)

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/duplicateA question or request for support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions