2

I recently had to install the discord app to Windows 10, and now clicking on discord invite links in the browser initially opens the webpage, but then immediately redirects and opens the app on my computer. Why can discord tell if the app is installed on my computer? Is there a way to prevent my browser from telling discord that the app is installed? What are the implications for other websites, ie could superuser.com find a list of apps installed on my device if it wanted to?

I don't think this is caused by saving a cookie. I've tried wiping all discord cookies, disabling all site permissions, and opening in an incognito window. Only disabling javascript stops it from opening the app, but that also completely breaks the site; you just get a white canvas

Update:
Several people have suggested URL handlers. This seems like a promising solution, but I am not finding a discord URL handler that I can remove. This question suggested deleting a line to make chrome stop opening irc links, but I do not know how to translate that into making chrome start opening discord links. (or even if that's the real problem)
An answer that was previously on this question suggested removing Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Discord from regedit, but that did not change anything that I could see when I tried it.
Going through the normal system settings, there is a "Choose default apps by protocol," but I could not find anything mentioning discord here.
Another solution suggested was changing google chrome's appdata, but I could not find any text matching "protocol" "magnet" or "discord"(other than discord.com) in any of the files suggested in the answers here. In the "protocol handlers" listed in my chrome settings, there is only mail and tel links, both of which I use and are unrelated to discord.

guest4308
  • 189

2 Answers2

2

It's not the URL handlers. It makes a request (opens a websocket connection) to the localhost on port 6463. If you quit the discord app, you'll see the join dialog in the web browser instead of the desktop app popping up.

-3

I'm not using Windows or Chrome, but I believe there are one or more methods to disable this behavior. The problem is that it is honoring "protocol handlers" provided by the host OS. There should be a place to disable them (on a granular level) in Chrome's Preferences - according to information on a related question it was at one time under Settings > Content Settings (under Privacy) > "Manage Handlers...", but that may very well have changed. The linked question also has suggestions on where to find files you may be able to edit to override the behavior.