Hello
First, thanks for WinSCP. It is a great tool.
In this bug report, I use WinSCP 5.18.5 RC in Explorer mode, fresh new, under Windows 10, with Firefox 78.11.0 ESR.
I recently wanted to use it for a new need: I am building some web tool which generates several files. For some input, my HTML code will be:
<a href='winscp-sftp://www.example.com/dir1/dir2/'>...</a>
If I click on this link from Firefox, it works: WinSCP in Explorer mode will open from the only one configuration it knows and which is for
www.example.com
(it sets the user name, the ppk3 key) and only prompts for the passphrase. OK, great. Then I keep on working with my tool which now gives me another href:
<a href='winscp-sftp://www.example.com/dir3/dir4/dir5/'>...</a>
At this time, WinSCP is still open on
/dir1/dir2/
or on another part of the file tree I went to. So I now click on the second href: the login window appears but it prompts for a user name, it knows nothing from the PPK to use. If I uncheck
"Open new externally initiated sessions in existing window", a new window will open and does know about the user name, the ppk to use and prompts for the passphrase.
I don't know if this is some bug, some mistake i do, my misunderstanding of the documentation. I would prefer to stick with only one window and more precisely with only one session (only one tab). I could accomodate if opening a new link does open a new tab. But i would prefer only one tab at all.
So what is the best practice to configure winscp to only use one session when initiated externally from a protocol URL address in a web browser, please?
Thanks in advance for any help.
Best regards, Thierry.