Social bookmarking web part does not work properly with URL wildcards

   —   
Social bookmarking web part links the URL with wildcards instead of the current URL.
The problem is that it uses the DocumentURL path instead of current URL. We will fix this behavior in the 5.5 version. As a workaround you need to modify this file:
<web site folder> \CMSWebParts\CommunityServices\SocialBookmarking.ascx.cs
change line 675:  

string liveUrl = node.IsLink ? CMSContext.GetUrl(node.NodeAliasPath, null) : CMSContext.GetUrl(node.NodeAliasPath, node.DocumentUrlPath);

to:

string liveUrl = UrlHelper.CurrentURL;

-hg-


See also:

Applies to: Kentico CMS 5.0
Share this article on   LinkedIn

Juraj Ondrus

Hi, I am the Technical support leader at Kentico. I'm here to help you use Kentico and get as much as possible out of it.