Index: arms/html/detail/page-sidebar.html =================================================================== diff -u -rcdbe93323ebd92cf45fabbf68f7315ca727da701 -r7b9fd2e4cfa13de9edaea57bbc8d83bf24c58d35 --- arms/html/detail/page-sidebar.html (.../page-sidebar.html) (revision cdbe93323ebd92cf45fabbf68f7315ca727da701) +++ arms/html/detail/page-sidebar.html (.../page-sidebar.html) (revision 7b9fd2e4cfa13de9edaea57bbc8d83bf24c58d35) @@ -106,7 +106,8 @@ Index: reference/jquery-plugins/select2-4.0.13/src/scss/theme/default/layout.scss =================================================================== diff -u -r881816164394f4fd710ff6cbb7257ed6053b901a -r7b9fd2e4cfa13de9edaea57bbc8d83bf24c58d35 --- reference/jquery-plugins/select2-4.0.13/src/scss/theme/default/layout.scss (.../layout.scss) (revision 881816164394f4fd710ff6cbb7257ed6053b901a) +++ reference/jquery-plugins/select2-4.0.13/src/scss/theme/default/layout.scss (.../layout.scss) (revision 7b9fd2e4cfa13de9edaea57bbc8d83bf24c58d35) @@ -1525,12 +1525,31 @@ const params = {}; window.location.search.replace(/[?&]+([^=&]+)=([^&]*)/gi, (str, key, value) => { - if (key === "page") { + + if (!isEmpty(path) && key === "page") { params[key] = path; } else { params[key] = value; } }); + params["mode"] = "detail"; location.href = `/arms/detail.html?${new URLSearchParams(params).toString()}`; } + +function gnuboardLink(bo_table) { + const params = {}; + + window.location.search.replace(/[?&]+([^=&]+)=([^&]*)/gi, (str, key, value) => { + + if (!isEmpty(bo_table) && key === "page") { + params[key] = "index"; + } else { + params[key] = value; + } + }); + params["bo_table"] = bo_table; + params["mode"] = "detail"; + + location.href = `/php/gnuboard5/bbs/board.php?${new URLSearchParams(params).toString()}`; +} \ No newline at end of file