I found a solution for xiaomi, go to settings, mannage apps, go to the menu at the right hand corner (...), go to default apps, scroll all the way down to opening links, click on the app and click on open supported links, change to open. Took me ages to figure it out but it finally works now.