card007 hace 4 años
padre
commit
3a5c1c33cc

+ 6 - 6
src/main/webapp/WEB-INF/views/mob/common/fragments/GnbMob.html

@@ -130,10 +130,10 @@
 				if (status == 'success') {
 					if (result.length > 0) {
 						$.each(result, function(idx, item) {
-							if(item.linkUrl.indexOf('?') < -1){
-								gnbId = '?gnbId=';
-							}else{
+							if(item.linkUrl.indexOf('?') > -1){
 								gnbId = '&gnbId=';
+							}else{
+								gnbId = '?gnbId=';
 							}
 							if (item.contentsType == 'L') { // 컨텐츠유형:링크
 								tag += '<li id="gnbLi' + item.gtabSq + '"><a href="' + item.linkUrl + gnbId + item.gtabSq + '" >' + item.gtabNm + '</a></li>\n';
@@ -173,10 +173,10 @@
 							} else if (item.contentsType == 'O') { // 컨텐츠유형: 아울렛
 								tag += '<li id="gnbLi' + item.gtabSq + '"><a href="javascript:void(0);" onclick="cfnGoToOutletMain(\'G032_103\',' + item.gtabSq + ');">' + item.gtabNm + '</a></li>\n';
 							} else { // 컨텐츠유형: 링크
-								if(item.linkUrl.indexOf('?') < -1){
-									gnbId = '?gnbId=';
-								}else{
+								if(item.linkUrl.indexOf('?') > -1){
 									gnbId = '&gnbId=';
+								}else{
+									gnbId = '?gnbId=';
 								}
 								tag += '<li id="gnbLi' + item.gtabSq + '"><a href="' + item.linkUrl + gnbId + item.gtabSq + '">' + item.gtabNm + '</a></li>\n';
 							}