Directing shell-executed links to same desktop?
Scenario: I have defined two different virtual desktops, using Windows 10's ability to create new desktops. As part of this, I have two different Firefox windows. One of them is located on Desktop A, and the second is on Desktop B.
When I click a link in an external program -- for example, Outlook, or Excel -- it shell executes that link. Firefox is set as my default browser, and so it handles the link. The problem is that when I click a link while looking at Desktop A, the link gets opened by the Firefox window on Desktop B and switches my view there, which takes me away from what I'm working on and forces me to move that tab back to Desktop A manually.
Furthermore, this is not consistent behavior. Sometimes clicking a link will cause Firefox to open a new tab in a window in the same desktop I was looking at when I clicked it. Other times it switches to the other desktop. I have not been able to figure out what determines which Firefox window gets the link.
All I really want is for links to open in the Firefox window that's already open in the same desktop as where I clicked the link. Is there some way to make that happen? I'm not sure if this a problem with Firefox or with how Windows handles shell-executing links. It could be either.
 This not the same as a virtual machine. For details, see this overview: https://www.cnet.com/how-to/how-to-use-multiple-desktops-in-windows-10/