Link in formula to other base (or view in same base) do not work properly

Steps to reproduce

  • Create a base
  • Create two views
  • Create a formula that links to the first view
  • Include that formula in the second view

Example:

formulas:
  link: link("test.base#view1")
views:
  - type: table
    name: view1
  - type: table
    name: view2
    order:
      - file.name
      - formula.link

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

Y

Expected result

View1 should be visible when using the link in view2.

Actual result

View2 is still visible.

Environment

SYSTEM INFO:
	Obsidian version: v1.9.12
	Installer version: v1.6.7
	Operating system: Darwin Kernel Version 24.0.0: Mon Aug 12 20:52:12 PDT 2024; root:xnu-11215.1.10~2/RELEASE_ARM64_T6020 24.0.0
	Login status: logged in
	Language: en
	Catalyst license: none
	Insider build toggle: off
	Live preview: on
	Base theme: dark
	Community theme: Black v1.0.0
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.

Addition: Linking to a view for a different base in a formula takes you to the default view instead of the specified (#view) view

I want to add to this, as I have a similar bug with Page Previews that I think all stems from how internal links are processed in bases.

I have the same problem with trying to Link to a heading in a note.

Example:

Linking and preview to the note itself work as expected:

Linking and preview to a heading in a note seems to just link to the original note

Here is the expected behavior seen in a link outside of the embedded base

Steps to reproduce

Construct a link pointing to a specific header, such as link( file.basename + "#" + "MyHeader").

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

Yes

Expected result

  • Clicking the link should open the note at the header position.
  • Hovering the link should open the popup preview focusing on that header.

Actual result

Although the link renders as intended (i.e. “My link > My header”), it doesn’t function as intended, and simply opens the file regularly.

Environment

SYSTEM INFO:
Obsidian version: v1.10.3
Installer version: v1.9.12
Operating system: Windows 11 Home 10.0.26100
Login status: logged in
Language: en
Catalyst license: insider
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

Mention of the bug in the Obsidian Discord server

1 Like