For magnets there is a standard way to handle them. As implemented in Shift. Take a look at the source for some inspiration.
Discussion of the Web Interface for Transmission, formerly known as Clutch. This applies to all version of Transmission
Thank you for this information, I wasn't aware of this feature. Unfortunately, it seems that it's only supported by Firefox, so it's not a perfect universal solution. I think I'll stay with the bookmarklet solution because it also allows to handle torrent links, but thanks anyway for your suggestion!
Btw good job for your Web UI and maintaining it for 10 years, that's impressive!
Edit: My bad, registerProtocolHandler seems to be supported by other browsers too, so I will take a look to handle magnet links properly, thank you again!
And thank you for putting a ★ on it! Good luck!
Um I don't really see what this has to do with this topic, but I can try to advise you where to find help.