URI callback opens second instance of Joplin

Operating system

Windows

Joplin version

3.4.12

Desktop version info

Joplin 3.4.12 (prod, win32)

Device: win32, 12th Gen Intel(R) Core(TM) i9-12900K
Client ID: 75*************
Sync Version: 3
Profile Version: 48
Keychain Supported: Yes
Alternative instance ID: -

Revision: e9a9f68

Backup: 1.4.4
Favorites: 1.3.2
Hotfolder: 1.2.2
Inline tags: 1.3.0
Note Tabs: 1.4.0
Outline: 1.5.15
Quick Links: 1.3.2
Rich Markdown: 0.16.4

Sync target

Dropbox

What issue do you have?

I use this to switch already running instance of Joplin to the desired note:
Run("joplin://x-callback-url/openNote?id=" . noteId)
But it usually opens a second instance and selects desired note. It used to work as expected, but now is reliably opening a second instance.

My understanding is the callback function should use the existing instance of Joplin. I'm running this in Autohotkey and have tried making Jopin the active window before running the callback function, but to no avail. When I run joplin://x-callback-url/openNote?id=[noteID] from browser, same thing, it opens a new instance of Joplin to the desired note.

Where am I going wrong?

Is there an alternative method of having Joplin switch to a note by its note ID?

FWIW This seems to be specific to Windows because I just attempted to reproduce on MacOS by entering url in the browser and was sent correctly to the existing instance.

Closely related to your former topic: Using the note's ID, how to open note from an already running instance of Joplin?

Yes, back then, updating Joplin temporarily resolved the issue, but now I’m on the latest version and issue has re-emerged.