cabennett85/gittest — Issue #1103: Every wish page for a cause has the same title and description tags
Author: cabennett85
Created: 2012-03-02 00:35:26+00:00
State: closed

Basic stuff... the wishes title should be added to the Title and Meta Description of a page, or... you get multiple pages all with the same generic title, Google flags as duplicate / HTML error.

See:
http://www.broadcause.com/OperationGratitude/wishes/67
http://www.broadcause.com/OperationGratitude/wishes/122

Same title, same meta.

Solution:

Take the first 60 characters of the wish (strip special characters!) and insert it into the title, put the entire wish into the description.

E.g. if the wish is:

"We need handwritten letters to ship in our care packages to deployed troops serving in harm's way."

Title becomes (roughly, I'm not counting exactly 60 chars):

"We need handwritten letters... | A Wish for Operation Gratitude" and description becomes (note I changed it entirely from the existing boilerplate):

"We need handwritten letters to ship in our care packages to deployed troops serving in harm's way. Can you help fulfill Operation Gratitude's wish?"