فهرست منبع

카카오톡, SNS 등 공유하기 기능 오류 수정. encodeURIComponet 를 제거

gagamel 4 سال پیش
والد
کامیت
dda969e0e2
1فایلهای تغییر یافته به همراه10 افزوده شده و 6 حذف شده
  1. 10 6
      src/main/webapp/ux/style24_link.js

+ 10 - 6
src/main/webapp/ux/style24_link.js

@@ -1575,8 +1575,9 @@ function sendSns(sns, url, txt, media, description)
 	var _media = encodeURIComponent(media);
 	var _description = encodeURIComponent(description);
 	
-	_url = location.protocol + encodeURIComponent(url);
-	_url = _url.replaceAll('#enp_mbris','') +'&share=Y'
+	_url = location.protocol + _url.replaceAll('#enp_mbris','') + '&share=Y'
+//	_url = location.protocol + encodeURIComponent(url);
+	
 	switch(sns)
 	{
 		case 'facebook':
@@ -1593,8 +1594,10 @@ function sendSns(sns, url, txt, media, description)
 
 var kakaoInitCnt = 0; //카카오 초기화 카운트, 재실행 방지를 위해 사용함
 function cfnSendToKakao(linkUrl, linkNm, linkImg) {
-	linkUrl = location.protocol + encodeURIComponent(linkUrl);
-	linkUrl = linkUrl.replaceAll('#enp_mbris','') +'&share=Y';
+	linkUrl = location.protocol + linkUrl.replaceAll('#enp_mbris','') + '&share=Y';
+//	linkUrl = location.protocol + encodeURIComponent(linkUrl);
+	
+	alert(linkUrl);
 
 	// Kakao Key
 	if ( kakaoInitCnt == 0 ) {
@@ -1628,8 +1631,9 @@ function cfnSendToKakao(linkUrl, linkNm, linkImg) {
 }
 
 function cfnSendToKakaoMob(linkUrl, linkNm, linkImg) {
-	linkUrl = location.protocol + encodeURIComponent(linkUrl);
-	linkUrl = linkUrl.replaceAll('#enp_mbris','') +'&share=Y';
+	linkUrl = location.protocol + linkUrl.replaceAll('#enp_mbris','') + '&share=Y';
+//	linkUrl = location.protocol + encodeURIComponent(linkUrl);
+	
 	// Kakao Key
 	if ( kakaoInitCnt == 0 ) {
 		Kakao.init(_kakaoDomainKey);