Share News Article URL with LinkedIn

10 views
Skip to first unread message

Richard Newsome

unread,
Mar 4, 2019, 12:27:01 PM3/4/19
to dotCMS User Group
Howdy,  I just noticed some strange behavior with dotCMS and LinkedIn.  URLs that are part of an UrlMapping do not seem to be followed when those links are shared on LinkedIn.  Code is below.  
Here is a sample URL.
https://www.uakron.edu/im/news/creativity-of-graphic-design-students-in-spotlight-at-akron-awards-ceremony/


<div class="addthis_toolbox addthis_32x32_style">
    <a class="addthis_button_linkedin" addthis:url='https://www.uakron.edu/im/news/creativity-of-graphic-design-students-in-spotlight-at-akron-awards-ceremony/' addthis:title='Title'> </a>
</div>
<!-- Go to www.addthis.com/dashboard to customize your tools --> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5c799963f10d8da5"></script>


Any help or thoughts would be appreciated.  Thanks

Mark Pitely

unread,
Mar 5, 2019, 9:55:40 AM3/5/19
to dot...@googlegroups.com
I am not entirely sure what the issue is; I've never seen this sort of problem.
It could be the trailing slash - for an UrlMap, that probably shouldn't be there - that is:
is preferable to

Perhaps try that and see if it clears up?

Mark Pitely
Marywood University

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com.
To post to this group, send email to dot...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/5d22eaf4-d664-4cae-8b65-31323c76ccde%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Richard Newsome

unread,
Mar 5, 2019, 11:55:56 AM3/5/19
to dotCMS User Group
Nope that did not fix it.  I tried another URL that uses the URL mapping functionality and it does NOT work as well for LinkedIn.  It seems LinkedIn is following the page path (ends with .dot) and not the URL Map. Any other ideas?

Mark Pitely

unread,
Mar 5, 2019, 12:08:21 PM3/5/19
to dot...@googlegroups.com
I guess I am not sure what you mean by 'linkedin' in this case - your use case is unclear to me.
Are you using some sort of javascript social toolbar plugin and the 'share' button for linkedin is not working properly? Can you give me the page on your site that is doing this?
If the plugin is accesing some dotCMS/Velocity code, it might be using $VTLSERVLET_URI for generating the page link, and that would need to be changed to use URLMaps.

Mark

Falzone, Chris

unread,
Mar 5, 2019, 3:28:04 PM3/5/19
to dot...@googlegroups.com
It sounds like you are using addthis and sending it $VTLSERVLET_URI for all pages, but you can't use that for detail pages, you have to generate those links for the detail pages.  


For more options, visit https://groups.google.com/d/optout.


--

Christopher Falzone

Interactive Developer


A Q U E N T

Digital, Creative, and Marketing Talent


aquent.com

cfal...@aquent.com

Reply all
Reply to author
Forward
0 new messages