Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.
This repository was archived by the owner on Dec 12, 2022. It is now read-only.

The http(s)LinkScheme setting is too simplistic #661

@m8nmueller

Description

@m8nmueller

The MXKAppSetting properties httpLinkScheme and httpsLinkScheme allow for the use of a third-party browser to open links. This works great for Chrome but not for Firefox which expects a URL of the form firefox://open-url?url=encodedUrl where encodedUrl is the target url encoded as query param (this is done by addingPercentEncoding(withAllowedCharacters: urlQueryAllowed).

This can become quite complex (as is at Telegram) because some browser expect a format like dolphin://http://whatever.com or yandexbrowser-open-url://escapedUrl where escapedUrl is url-host escaped.

While I think, the latter stuff is unneeded, the support for Firefox would be nice and is also asked for at Riot. I will work on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions