Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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..
Comment | File | Size | Author |
---|---|---|---|
#4 | metatag-n2176351-4.patch | 877 bytes | DamienMcKenna |
Comments
Comment #1
gagarine CreditAttribution: gagarine commentedComment #2
gagarine CreditAttribution: gagarine commentedIn 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.
Comment #3
DamienMcKennaHrm. 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.
Comment #4
DamienMcKennaThis removes the page title lines for the 403 and 404 default settings.
Comment #5
DamienMcKennaCommitted.