ID:1843483
 
Resolved
Links in browser controls opened in the same window.
BYOND Version:507.1283
Operating System:Windows 8 Pro 64-bit
Web Browser:Chrome 42.0.2311.90
Applies to:Webclient
Status: Resolved (507.1284)

This issue has been resolved.
Descriptive Problem Summary:
BYOND inside of BYOND.. lool
Numbered Steps to Reproduce Problem:
1. Join a game
2. Click a link that redirects to a website(don't use browse() or Topic())
#BYONDCeption <- Also most likely unintentional xD
Image and video hosting by TinyPic
Image and video hosting by TinyPic
Hrm. I could swear I'd tested this out already. Does this happen only in browser controls, or does it happen in links sent to output?
Hmm. Weird.
mob/verb

output_test()
world<<"http://www.byond.com/" // clicking it doesn't replicate it
link_test()
world<<link("http://www.byond.com/") // doesn't replicate
browse_test()
// doesn't replicate
world << browse({"<html><body onload="document.location.href='http://www.byond.com';">&nbsp;</body></html>"})


You might want to have a talk with Bustercannon, as the bug is easily replicated playing his game Soul Elysium. I'm not sure what he's doing for it to do this behavior, but in case you want to replicate it yourself:

1. http://www.byond.com/play/597171742
2. Make an account or log in to your own
3. Click "Purchase" in the top left corner of the screen
4. Press "Ok"
Lummox JR resolved issue with message:
Links in browser controls opened in the same window.
I updated specifically for this fix, only to find out that it didn't actually fix it; at least not for DS.



It's just a browser sent:
world << output("<font size=2><b>If you find any issues with the game please report them <a href=\"http://www.byond.com/forum/\">here</a>. Thank you!</b></font>", "browser1")

Clicking the link opens it inside that browser.
Reformist wrote:
I updated specifically for this fix, only to find out that it didn't actually fix it; at least not for DS.



It's just a browser sent:
world << output("<font size=2><b>If you find any issues with the game please report them <a href=\"http://www.byond.com/forum/\">here</a>. Thank you!</b></font>", "browser1")

Clicking the link opens it inside that browser.


Where else would you expect a link to open, if not the browser you clicked them in?
In response to Super Saiyan X

Where else would you expect a link to open, if not the browser you clicked them in?

@This^

The bug was it opening in the same TAB, I.e exiting the game to redirect you to the website(BYOND in this case), but still acting as if you were playing the game, and thus retaining the BYOND navigation center and whatnot. The way you're using it results in expected behavior.
You can use the following code to open in the default users browser.

<a onclick="window.open('http://www.byond.com/forum/');">BYOND Forums</a>


You may have to set the href to something like "#" or "?" or just blank so that it looks like a link still or mess with the styling. But Super Saiyan is right, one would expect it to show up in the browser you clicked the link in, but it can be gotten around easily.

Also I don't see how opening OVER the content in the browser in dream seeker prevents you from playing the game, unless it's web-based inside BYOND, which is almost pointless.
In response to Super Saiyan X
"Links in browser controls opened in the same window."

Sounds a lot like that was unintended behavior. My bad for misinterpreting, I guess.