diff --git a/common/js/tree_menu.js b/common/js/tree_menu.js
index 282f7f93f..fd9063df1 100644
--- a/common/js/tree_menu.js
+++ b/common/js/tree_menu.js
@@ -91,7 +91,7 @@ function loadTreeMenu(url, menu_id, zone_id, title, callback_func, manual_select
}
// 트리메뉴 XML정보를 이용해서 정해진 zone에 출력
-var manual_select_node_srl = 0;
+var manual_select_node_srl = '';
function drawTreeMenu(oXml, callback_func, resopnse_tags, null_func, param) {
var xmlDoc = oXml.getResponseXml();
if(!xmlDoc) return null;
@@ -144,7 +144,7 @@ function drawNode(parent_node, menu_id) {
// url을 확인하여 현재의 url과 동일하다고 판단되면 manual_select_node_srl 에 값을 추가
if(node_callback_func[menu_id] == moveTreeMenu && url) {
if(typeof(zbfe_url)!="undefined" && zbfe_url==url) manual_select_node_srl = node_srl;
- else if(location.href.indexOf(url) != -1) manual_select_node_srl = node_srl;
+ else if(location.href == url) manual_select_node_srl = node_srl;
}
// 자식 노드가 있는지 확인
diff --git a/layouts/sample_layout/layout.html b/layouts/sample_layout/layout.html
index 4814d563f..9998c7635 100644
--- a/layouts/sample_layout/layout.html
+++ b/layouts/sample_layout/layout.html
@@ -11,7 +11,9 @@
{$content}
diff --git a/modules/layout/layout.controller.php b/modules/layout/layout.controller.php
index 38b112012..1bfb3dae6 100644
--- a/modules/layout/layout.controller.php
+++ b/modules/layout/layout.controller.php
@@ -296,12 +296,14 @@
if($menu_srl&&$tree[$menu_srl]) $child_buff = $this->getPhpCacheCode($tree[$menu_srl], $tree);
- if($node->url && !strpos($node->url, '://')) $node->url = "./?".$node->url;
+ if($node->url && !strpos($node->url, '://')) $node->href = "./?".$node->url;
+ else $node->href = $node->url;
$attribute = sprintf(
- '"node_srl"=>"%s","text"=>"%s","url"=>"%s","open_window"=>"%s","normal_btn"=>"%s","hover_btn"=>"%s","active_btn"=>"%s","group_srls"=>array(%s),%s',
+ '"node_srl"=>"%s","text"=>"%s","href"=>"%s","url"=>"%s","open_window"=>"%s","normal_btn"=>"%s","hover_btn"=>"%s","active_btn"=>"%s","group_srls"=>array(%s),%s',
$node->menu_srl,
str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->name),
+ str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->href),
str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->url),
$node->open_window,
str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->normal_btn),