문제

I have multiple sub pages links in my page i am using canonical link to share my pages but for all sub pages it is showing same link

<link rel="canonical" data-href="http://www.website.com/{!object.name}" />

<div class="g-plusone"  data-size="medium" ></div>
<!-- Place this tag after the last +1 button tag. -->

<script type="text/javascript">
(function() {
 var po = document.createElement('script'); 
 po.type = 'text/javascript'; 
 po.async = true;
 po.src = 'https://apis.google.com/js/plusone.js';
 var s = document.getElementsByTagName('script')[0]; 
 s.parentNode.insertBefore(po, s);
})();
</script>

I am using this code in apex:repeat tag but for all records the first value url is showing. how to do this?

도움이 되었습니까?

해결책

found some code through google documents and its working fine for me. instead of using link used

 <div class="g-plusone"  data-href="http://www.website/{object.name}" data-size="medium" ></div>                                                     
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top