diff --git a/builtin/mainmenu/tab_about.lua b/builtin/mainmenu/tab_about.lua index 8c5573399..1805acc81 100644 --- a/builtin/mainmenu/tab_about.lua +++ b/builtin/mainmenu/tab_about.lua @@ -158,7 +158,7 @@ return { "style[label_button;border=false]" .. "button[0.1,3.4;5.3,0.5;label_button;" .. core.formspec_escape(version.project .. " " .. version.string) .. "]" .. - "button[1.5,4.1;2.5,0.8;homepage;minetest.net]" .. + "button_url[1.5,4.1;2.5,0.8;homepage;minetest.net;https://www.minetest.net/]" .. "hypertext[5.5,0.25;9.75,6.6;credits;" .. minetest.formspec_escape(hypertext) .. "]" -- Render information @@ -188,10 +188,6 @@ return { end, cbf_button_handler = function(this, fields, name, tabdata) - if fields.homepage then - core.open_url("https://www.minetest.net") - end - if fields.share_debug then local path = core.get_user_path() .. DIR_DELIM .. "debug.txt" core.share_file(path) diff --git a/doc/lua_api.md b/doc/lua_api.md index b0bcdf34e..3a2e1f47d 100644 --- a/doc/lua_api.md +++ b/doc/lua_api.md @@ -3017,6 +3017,16 @@ Elements centered on `H`. With the new coordinate system, `H` will modify the height. * `label` is the text on the button +### `button_url[,;,;;