Url scheme focusses on already opened note instead of opening it twice

When using the url scheme to open a note, if the note is already open in a non-active view, the note should be focussed/activated instead of opening it twice.

Related would be an option for the url scheme whether the note should be opened in a new or an existing view.