developmentseed / developmentseed/FeatureServer
SEO issue: titles
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 46
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
Currently FServer causes the main project page and the associated "all releases" page to have an identical title, which gets reported in Google webmasters tools.
A possible quick fix is to modify the head title when the page template is the one for releases, indicating that this is the releases page:
/**
* Implements hook_preprocess_page().
*/
function fserver_preprocess_page(&$vars) {
if (in_array('page-node-releases', $vars['template_files'])) {
list($title, $site) = explode(' | ', $vars['head_title']);
$vars['head_title'] = t('@title: All releases | @site', array(
'@title' => $title,
'@site' => $site,
));
}
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Drupal implementation of fserver_preprocess_page() and inspect how page-node-releases is represented in the page template variables. Verify the current titles for the main project page and the all-releases page, then confirm that the releases page receives a distinct title and that existing page behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100