Sys.open_url("") --Bug? (SOLVED)



When I execute: “sys.open_url(“”)” on HTML5 version
is opens in a new tab? (it should open in same tab game was running in)

Please fix above problem in next release of Defold, thanks!



It’s not a bug.

If you want to change the current page on html5 builds you can do

if html5 then"window.location = '';")


I need the website to load in same tab as game is running, how would I do that?
The above opens the website in a new tab?


For some reason, that changes the current window location and opens a new tab with Defold…

I just tested this and it should work however (tested with Chrome on Windows).

if html5 then"'','_self');")


Works, thank you…