Reset Brave to Stop Automatically Opening Apps

Once it is enabled there seems to be no way to disable automatically opening apps.

When I open links like<> which is invite link, Discord application is automatically opened. I could not find anything in settings to disable this.

Is there a way to disable this without removing all the saved sessions and passowrds.

Thank you

You can look in privacy and security> additional permissions> protocol handlers