Bases HTML function Links don't open notes they link to

Once you’ve done the above, delete everything above this line.

Steps to reproduce

  1. Create a note and a base
  2. Add a formula to the base with the following contents:
html("<a href=\"" + file.path + "\">" + file.basename + "</a>")
  1. If not already, make the formula visible in the base
  2. Try and click the links
  3. Observe that the links don’t open their respective notes

Did you follow the troubleshooting guide? [Y/N]

Expected result

The link should open the note it links to.

Actual result

The note doesn’t open and instead nothing happens.

Environment

SYSTEM INFO:
	Obsidian version: v1.10.3
	Installer version: v1.10.3
	Operating system: #1 SMP PREEMPT_DYNAMIC Fri, 14 Nov 2025 06:54:20 +0000 6.17.8-arch1-1
	Login status: not logged in
	Language: en
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

Additional information

I tried the same link element but with an actual website as href, and that actually opened.

2 Likes

Having this problem as well. I noticed that, when rendered, a target="_blank" seems to be forced onto the link, even if you include target="_self" in the code. Maybe that has something to do with it?