By default 404 and 403 pages are configured like that:

Page title: [site:name]

We should keep the global configuration with the current-page title:

[current-page:title] | [site:name]

Why? Mainly because this is a simple way to track down error page with Google Analitics. You simply have to create a filter on the page title, no need of event etc..

CommentFileSizeAuthor
#4 metatag-n2176351-4.patch877 bytesDamienMcKenna
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gagarine’s picture

Issue summary: View changes
gagarine’s picture

In fact you can track theme easely if you use the google analitics module has it push a custom path (404.html and 403.html) to google analitics.

....
// Track access denied (403) and file not found (404) pages.
    if ($status == '403 Forbidden') {
      // See http://www.google.com/support/analytics/bin/answer.py?answer=86927
      $url_custom = '"/403.html?page=" + document.location.pathname + document.location.search + "&from=" + document.referrer';
    }
    elseif ($status == '404 Not Found') {
      $url_custom = '"/404.html?page=" + document.location.pathname + document.location.search + "&from=" + document.referrer';
    }
....
DamienMcKenna’s picture

Hrm. Yeah probably. I set the metatags for Twitter Cards and Open Graph to point to the homepage, so that if someone linked to a 403/404 page it'd give the details for the homepage, but I suppose it makes sense for the page title to still indicate the correct error.

DamienMcKenna’s picture

Status: Active » Needs review
FileSize
877 bytes

This removes the page title lines for the 403 and 404 default settings.

DamienMcKenna’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

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