Skip to content

mailto: and file: URLs linkified differently from Obsidian in both dv.paragraph and inline dataviewjs queries #2572

Open
@talwrii

Description

@talwrii

What happened?

I wanted to construct a mailto: email from a view emails which I could click on. The links generated linkified the email addresses separately from the mailto.

In the example provided. You can see that file: and mailto: form part of the link generated if used in obsidian, but they are not part of the link if used in dv.paragraph.

This behaviour is replicated with inline format strings:

`=`
`$=`

The work around I am using is to generate a mailto link like so:

[email address](mailto:me@me.name)

DQL

No response

JS

```dataviewjs
dv.paragraph("mailto:me@me.name")
dv.paragraph("[mail](mailto:me@me.name)")
dv.paragraph("file:///etc/passwd")
dv.paragraph("http://www.test.com/")
```

`="mailto:me@me.name"`
`$="mailto:me@me.name"`

file:///etc/passwd
mailto:me@me.name

Dataview Version

0.5.68

Obsidian Version

v1.8.10

OS

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions