@-symbol breaks aliases

Steps to reproduce

  1. create a note with the following front matter:
aliases: [@author2007, another alias]
  1. Type [[another alias

Expected result

Obsidian will propose an alias-link to the note we created.

Actual result

Obsidian does not propose such a link


  • Operating system: macOS 12
  • Debug info:
	Obsidian version: v1.0.3
	Installer version: v0.15.8
	Operating system: Darwin Kernel Version 21.6.0: Mon Aug 22 20:20:05 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T8101 21.6.0
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: Obsidian Nord
	Snippets enabled: 1
	Restricted mode: off
	Plugins installed: 46
	Plugins enabled: 38
		1: Templater v1.16.0
		2: Citations v0.4.5
		3: Calendar v1.5.10
		4: Natural Language Dates v0.6.1
		5: Excalidraw v1.8.0
		6: Note Refactor v1.7.1
		7: QuickAdd v0.7.0
		8: MetaEdit v1.7.2
		9: Metadata Extractor v1.0.2
		10: Dataview v0.5.47
		11: Periodic Notes v0.0.17
		12: Find orphaned files and broken links v1.8.0
		13: Readwise Official v2.0.1
		14: Matter v1.1.4
		15: Local REST API v1.5.1
		16: Zotero Integration v2.2.31
		17: Regex Find/Replace v1.2.0
		18: Obsidian42 - BRAT v0.6.36
		19: Zotero Plugin v1.0.0-beta.0
		20: Pandoc Reference List v1.2.10
		21: DEVONlink v2.2.1
		22: Style Settings v0.4.12
		23: Super Simple Time Tracker v0.1.5
		24: Full Calendar v0.8.0
		25: Projects v1.3.0
		26: Daily notes opener v2.0.2
		27: Auto Note Mover v1.2.0
		28: LanguageTool Integration v0.3.2
		29: Spotlight v0.2.0
		30: Tasks v1.19.0
		31: Advanced URI v1.31.1
		32: Advanced Tables v0.18.0
		33: Auto Link Title v1.2.5
		34: Obsidian Better Internal Link Inserter v1.0.0
		35: Snippetor v0.2.7
		36: Custom window title v0.3.5
		37: Recent Files v1.3.5
		38: Obsidian42 - Strange New Worlds v1.1.0

Additional information

If the front matter is changed to

aliases: [author2007, another alias]

it works.

I conclude that it is the @-symbol in the first alias that breaks all aliases for this note.

The Obsidian documentation (Add aliases to note - Obsidian Help) doesn’t mention any forbidden characters in aliases, so I’d assume that the same rules apply as to file names (where @ is allowed). This is why I file this as a bug rather than a feature request. If it is not a bug, please move it to #Feature-requests. In that case I would suggest adding a note to the documentation about forbidden characters.

As for the need of this: many people use aliases starting with @ to refer to the citekey of their references (alias: @author2007) still works!). This bug (?) makes it impossible for them to use more than one alias for those references.

I think I figured it out. It works when you escape strings with forbidden characters using quotation marks, like this:

aliases: ["@author2007", another alias]

So perhaps this could be added to the documentation at Add aliases to note - Obsidian Help?

In any case, the bug turned out to be none, so I’m moving this topic to #get-help

While experimenting, I also noticed that having more than one aliases: line in the header will break all of them (i.e. none is recognized as a valid alias). It would be great to have a setting to change this behaviour to “use last” or “use first” instance of the tag.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.