We're currently working on an issue with our site which utilizes 6.7.2. Specifically, the issue involves the site's "Share this page" link which uses a default email client and creates an email using a mailto link with the current page information. Specifically, it displays the page <title> in the body of the email along with a link to the page.
However, we've discovered that on pages using a a specific page template which contains a component that is served data using an external handler, the page title is being appended with the a page title from another DCR utilizing the same template.
The external handler sets the page <title> value by placing it into the page scope data.
Eg.
Map pageData = context.getPageScopeData();
if (StringUtils.isNotBlank(content.getTitle()))
{
pageData.put(RuntimePage.PAGESCOPE_TITLE, content.getTitle());
}
if (StringUtils.isNotBlank(content.getSummary()))
{
pageData.put(RuntimePage.PAGESCOPE_DESCRIPTION, content.getSummary());
}
The summary data populates without issue. However, this is used on other templates where this issue does not occur when the user clicks on the "Share this page" link.
After troubleshooting this for a while, we're at a loss in regards to the cause of this issue. Does anyone have any ideas on what could cause this or how we might troubleshoot further?