If you open a weblink in the browser based viewer, it tries to open it in the internal viewer browser "use the default system browser for all links" and "enable java script" is enabled.
That seems like a security risk as the internal browser is far out of date and lacks modern security, especially with java enable. Best would be to change to external browser by default or disable the internal browser completely