Skip to content

Allow all URLs schemes for in-chat messages #18468

Closed
@AgentOak

Description

@AgentOak

Steps to reproduce

  1. Open Element, enter any chat
  2. Write and send a message that contains a URL with a scheme other than http or https

What happened?

It looks like Element has a hard-coded list of schemes it will consider for a URL, therefore not converting some valid URLs into clickable links.

element-urls

The only link that is actually clickable in this image is the first one. file:// and ftp:// are recognized but don't do anything when clicked. All the other links where the scheme was cut off also don't do anything when you click on them.

What did you expect?

Element recognizes all URLs independently of their scheme and upon clicking them invokes the appropriate system handler to launch the default application registered for the scheme.

On the other hand, file:// URLs should probably be rejected, even though they work properly from the OS side, i.e. Win+R "file://C:/example.log" correctly opens the file in the default application for .log files.
I don't know about data: URIs but those probably cannot be handled properly so they're fine as is.

Operating system

Windows 10

Application version

Element version: 1.7.34, olm version: 3.2.3

How did you install the app?

https://element.io/get-started

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-URL-PreviewsO-UncommonMost users are unlikely to come across this or unexpected workflowS-MinorImpairs non-critical functionality or suitable workarounds existT-Defect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions