By Valentin Barbu on Tuesday, 23 June 2015
Posted in Technical Issues
Replies 1
Likes 0
Views 529
Votes 0
 <script type="text/javascript">
EasyBlog.require()
.script("bookmarklet")
.done(function($) {

$('#sb-1550606526').bookmarklet('twitter', {
"text": "Article title",
"url": "https://www.domain.com/https://www.domain.com/blog/article-title/",
"via": "Website name",
"size": "large",
"tracking" : false });

});
</script>
<div class="social-button retweet">
<span id="sb-1550606526"></span>
</div> </div>

<div class="eb-share-google-plus">
<script type="text/javascript">
EasyBlog.require()
.script("bookmarklet")
.done(function($) {

$('#sb-1888762546').bookmarklet('google', {
"href": "https://www.domain.com/https://www.domain.com/blog/article-title/",
"size": "large"
});
});
</script>
<div class="social-button google-plusone">
<span id="sb-1888762546"></span>
</div> </div>

<div class="eb-share-linkedin">
<script type="text/javascript">
EasyBlog.require()
.script("bookmarklet")
.done(function($) {

$('#sb-1819934386').bookmarklet('linkedin', {
"href": "https://www.domain.com/https://www.domain.com/blog/article-title/",
"size": "large"
});
});
</script>


As you can see it inserts the domain name two times
Hello Valentin Barbu,

I am sorry for the delay of this reply.

Regarding this issue, can you open this file 'JOOMLA/components/com_easyblog/views/views.php' and search for line code at line 451:


$url = EBR::_($url, false, true, true);


and replace the above with:


$url = EBR::_($url, false, null, true);


The above should fix your issue with the duplicate domains in the url when submitting to social buttons
The fix will be included in next release of EasyBlog as well

Hope this help and have a nice day!
Sam
·
Wednesday, 24 June 2015 13:39
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post