Wikilinks Section Links Replicate Typos

Steps to reproduce

  1. Open a note
  2. Make a wikilink that will render as a relative link with bar text (i.e., the result looks like [[../blah/My Note|My Note]])
  3. Alter the link to remove the bar text (|My Note) and add a character so that the link is no longer correct (i.e., looks like [[../blah/My Notef]]).
  4. Hit enter to exit the little link-chooser dialog.
  5. Elsewhere in the note the link is in, make another wikilink pointing to the same note (i.e., [[../blah/My Note|My Note]]).
  6. Once again remove the bar text, forming a valid link with no text set (i.e., [[../blah/My Note]])
  7. Attempt to add a section link using the # key ([[../blah/My Note#]]).

This will automatically replace the link target to the typo from step #3, making it impossible to actually link to the note. Any time you edit the note, Obsidian will automatically typo it again.

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

Yup

Expected result

I should be allowed to type a section in the wikilink.

Actual result

The wikilink I was using is replaced by the typoed link.

Environment

This is around in Linux Flatpak 1.5.3 and 1.10.6

The latter has this debug info:

SYSTEM INFO:
	Obsidian version: v1.10.6
	Installer version: v1.10.6
	Operating system: #88~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Oct 14 14:03:14 UTC 2 6.8.0-87-generic
	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’ve found odd bugs in the Wikilinks section link before. In the most polite way, something is bizarrely wrong with whatever is going on in that section of the code. I do not know if you guys have open sourced since I last checked, so I do not mean to be shirking this responsibility, but these bugs are really really odd.

Don’t know that this is the same for your Linux installation as on Windows, but your description sounds like this…

Typing “#” in a link inserts the highlighted suggestion followed by a “#”.

Unresolved links show up in the link suggester as uncreated notes. It can’t distinguish your typo from an intentional unresolved link.

A workaround to selecting the typo is to highlight the note you mean (via arrow key or mouse) and then type “#”.

Another workaround is to press escape to dismiss the suggester and then type “#”.

1 Like