obsidian-tasks icon indicating copy to clipboard operation
obsidian-tasks copied to clipboard

Remove any hyperlinks from the heading component of backlinks

Open ybnd opened this issue 10 months ago • 5 comments

Please check that this issue hasn't been reported before.

  • [X] I searched previous Bug Reports didn't find any similar reports.

Expected Behavior

Task backlinks should "simplify" links in headings to just their display text.

20231025-153746

Current behaviour

Currently, backlinks to headings that include a link include the full link. Applies to markdown links and wikilinks both. This can make the backlinks quite hard to read.

20231025-153358

Steps to reproduce

  1. Create a task under a heading with a link (markdown or wikilink)
  2. Display the task

I have made an example vault for this, let me know if I should link to it.

Which Operating Systems are you using?

  • [ ] Android
  • [ ] iPhone/iPad
  • [ ] Linux
  • [X] macOS
  • [ ] Windows

Obsidian Version

1.4.16

Tasks Plugin Version

5.0.0

Checks

  • [X] I have tried it with all other plugins disabled and the error still occurs

Possible solution

No response

ybnd avatar Oct 25 '23 13:10 ybnd

Hi, your sample vault would be greatly appreciated please.

ideally by making a .zip and attaching it in a comment in this ticket.

Thanks in advance.

claremacrae avatar Oct 25 '23 13:10 claremacrae

Here you go sample.zip

ybnd avatar Oct 25 '23 14:10 ybnd

Hi @ybnd, thanks very much, it's a lot clearer now that I've been able to experiment with it.

So I understand the problem.

Prior backlinks requests

I've given this the backlinks label and then looked at all backlinks requests:

I do think that this is a new description of the problem.

The request

Now I need to understand what the request actually is.

These are the two ways you have phrased it:

  • Task backlinks show full links from heading text
  • Task backlinks should "simplify" links in headings to just their display text.

But I think that the screenshot under 'Expected behaviour' makes it really clear.

If I understand it correctly, I think the request is effectively:

  • Since the entire backlink text is rendered a link ...
  • ... there is no value in the heading component of the backlink displaying the destinations of any other kinds of links that are in the heading ...
  • ... as URLS, wikilinks or markdown links are useless clutter that make the backlink harder to read.

Is that broadly what you mean?

claremacrae avatar Oct 25 '23 18:10 claremacrae

Exactly!

ybnd avatar Oct 26 '23 10:10 ybnd

Great, thanks - I've updated the title to (try to) clarify...

Thanks for the suggestion.

claremacrae avatar Oct 26 '23 10:10 claremacrae