Idea - option to make all external links open in new tab/window

I use nextcloud in a chrome “app shortcut”. It makes the site stay in a single window, without tabs, and provides an easy way to always find nextcloud in my taskbar. This is great, until i load a external link, and my app icon in the taskbar takes me to a github page i loaded. I realize i could have middle clicked, or right click -> open in new tab. But it seems to me it might be helpful to have a system-wide option. “load all external links in new tab”

I’m not familiar enough with the nextcloud framework to know if this is something that could be acomplished with an app, or if it would need to be baked in. But i imagine there are many people that could benefit from this option.