Actually just one fix in opengraph_meta.pt
<meta property="og:url" content="URL of this object"
tal:attributes="content context/@@plone_context_state/canonical_object_url" />
Using the /canonical_object_url instead of Zope's absolute_url in order to handle "default pages" of folders (e.g. I want to share /events not /events/aggregator)
Use real URL, take care of default pages
If I want do share something like "/events", I do not want to have the URL to have as "events/aggregator". This is important for all folder that have a "default page".
see https://svn.plone.org/svn/plone/plone.app.layout/trunk/plone/app/layout/globals/interfaces.py for the various methods to get the URL of an object
If there is a page being set as default page of /news then its image would be /news/mydefaultpage/myleadimage...
Seems really good to me. Have you time to add also a specific test for this new change?
I can add it by my self when I found some time.
I'd really love to but I haven't got the time. Sorry :-(
No problem, I can add it for you when I'll find some times. Thanks!
added a test for checking issue #2