When Obsidian is closed, urls don't fully work

Steps to reproduce

  1. Let’s say I have 2 vaults. VaultA and VaultB.

  2. I close VaultB. I then close VaultA last. VaultA is the last-closed vault.

  3. I have 4 test urls to open either the vault or a specific note:
    obsidian://open?vault=VaultA
    obsidian://open?vault=VaultB
    obsidian://open?vault=VaultA&file=Test.md
    obsidian://open?vault=VaultB&file=Test.md

  4. If Obsidian is closed, clicking any of those urls will open the last-opened VaultA, and the last-opened note, and ignore anything in the url.

Expected result

The specified vault and/or note should open.

Actual result

If the Obsidian app is closed, clicking any of these links will open the last-opened vault and the last-opened note.

If Obsidian is already open, the specific vault or the specific note in the URL does open as expected.

Environment

  • Operating system: MacOS
  • Obsidian version: 0.9.10

Additional information

2 posts were merged into an existing topic: Opening specific Obsidian vault other than last open when app is not already open fails