Snap open the wrong browser

I have two snap installed (obsidian and theia-ide) and if chromium is installed on my machine, clicking on a link opens chromium even though firefox is my default browser.

I am not sure what information I can provide to help figure out what is happening. In my terminal this command xdg-open http://some-website starts firefox

Somehow theia works well now. The only thing I have done are launching the app as an appimage to see if the bug was also there, and launch it once from a terminal.

On the other hand obsidian still opens chrome even after I launched it in a terminal