ID:234079
 
Applies to:Dream Seeker
Status: Open

Issue hasn't been assigned a status value.
Normally, clicking a link inside a browser in a BYOND game will open that link using IE. However, you can override this behavior by using custom Topic links, to have the links open in your preferred/default browser.
mob/Login()
var/thisLink="http://www.BYOND.com"
var/textBody="<a href=[thisLink] target=_blank>Normal Link</a>"
textBody+="<p>"
textBody+="<a href=?src=\ref[src];action=link;link=[thisLink]>Topic Link</a>"
src<<browse(textBody,"window=new")

mob/Topic(href,href_list[])
if(href_list["action"]=="link") src<<link(href_list["link"])
return ..()

Would it be possible for BYOND to have some sort of built-in processing to accomplish this?
I wish BYOND used the default browser by default in the pager and clicking links.