public override void OnFollowLink(HtmlElement linkElement, Location path) { // Grab the protocol: string protocol = path.Protocol; // Is it actually a web one? string[] names = GetNames(); bool web = false; for (int i = 0; i < names.Length; i++) { if (protocol == names[i]) { web = true; break; } } HtmlDocument targetDocument = null; if (web) { // Otherwise it's e.g. an app link. No target there - always external. // Resolve the link elements target: targetDocument = linkElement.ResolveTarget(); } if (targetDocument == null) { // Open the URL outside of Unity: Application.OpenURL(path.absolute); } else { // Load into that document: targetDocument.location = path; } }