Let’s say I have 2 open notes, Parent and Child.
Parent has a link to Child.
If I click on
[[Child]] from Parent and unless Parent is pinned, Obsidian will re-open Child.
Now I have 2 open copies of Child, and 0 of Parent.
If the note Child is already open, just put the focus on it, even if Parent is not pinned. If the user really wants to open another copy of Child, they can just middle click on the link.
I quickly wrote a hacky monkey-patch to get around this: GitHub - scambier/obsidian-no-dupe-leaves: Automatically switch the focus to open notes instead of reopening them