Problem/motivation

The <title> element is not correct on CiviCRM Event pages, on Drupal installations using Metatag.

Details

Metatag caches meta tags and <title> tags. The problem is that CiviCRM events all have the same URL end point, with different query strings to differentiate them, ie:

civicrm/event/info?reset=1&id=1
civicrm/event/info?reset=1&id=2
etc...

Metatag sees these as one event and caches the <title>

Proposed solution

One possible solution would be for metatag to cache based on full URL including the query string? Or this could be an option/sub-module?

Comments

damienmckenna’s picture

Status: Active » Postponed (maintainer needs more info)

If they are normal nodes it should Just Work(tm). I'm personally not going to touch CiviCRM, but if if any patches are necessary I'll be happy to review them.

damienmckenna’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Unless someone can explain otherwise, this should Just Work if the events are indeed just nodes.

jkingsnorth’s picture

Title: CiviCRM » CiviCRM Event Titles
Issue summary: View changes
Status: Closed (works as designed) » Active

Hi, I can confirm this is an issue for sites using CiviCRM. I've updated the issue summary with more information about the issue and posted the issue to the CiviCRM forum as well: http://forum.civicrm.org/index.php/topic,32375.0.html

A temporary solution is just to leave the 'Page title' pattern for the 'Global' metatag settings empty. It will then default to the Drupal default without caching which works.

damienmckenna’s picture

damienmckenna’s picture

Component: User interface » Integration with other module
jkingsnorth’s picture

Status: Active » Fixed

I believe this is actually now fixed on the CiviCRM side: https://issues.civicrm.org/jira/browse/CRM-15140

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.