Unable to open links to sites on same host as the mattermost server.
Steps to reproduce
Mattermost desktop version: 4.4.0 Windows 10.
This text will be hiddenA link is pasted in the chat that is on the same host (foo . bar . com) (added spaces around parts since I cannot have more than two links as a new user, making it really difficult to write a troubleshoot message) as mattermost, but in a different folder (Mattermost is in /mm on my setup, and the links I cannot access are for instance in /cr). When I press the link nothing happens and the console message shown in observed behavior is displayed in “Developer tools for Application Wrapper”.
The link is opened in my default browser.
My setup is somewhat similar to this: Mattermost is on: https :// foo . bar . com / mm and I have a code review site on foo . bar . com / cr when I receive links to the code review site, I am unable to open it, and get the following message in the console:
[09:05:57.130] https://foo.bar.com/cr/#/c/c2/something/+/12063/ is a known team, preventing to open a new window
Links to external sites like youtube works just fine. It has worked in a previous version (before 4.3.2 I think), it works for my colleague running 4.2.1. In my previous version it opened the links, but in an internal mattermost window and not my default browser. My colleagues version works as expected. So I guess the problem is introduced between version 4.2.1 and 4.3.2 and worsened in 4.4.0.