Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
- Removed: json-ld backport
- Removed: @WebPage schema integration, because it is provided by Contao core
- Removed: @BreadcrumbList schema integration, because it is provided by Contao core
- Removed: canonical links backport

## [1.14.2] - 2025-12-17
- Fixed: Relative image paths had to be absolute
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ This bundle enhances the handling of html `<head>` section tags. It provides ser
- Sets important meta tags like og:title, og:description, og:url and twitter:card out of the box
- Allow setting open graph and twitter fallback image on root page
- Allow setting twitter author per root page
- Backport canonical url option from contao 4.13 for contao 4.9+

## Usage

Expand Down
10 changes: 0 additions & 10 deletions contao/languages/de/tl_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,3 @@
$lang['head_legend'] = 'Head-Bundle';
$lang['head_twitter_legend'] = 'Head-Bundle - Twitter';
$lang['schema_legend'] = 'Strukturierte Daten (Schema.org)';

// if (version_compare(VERSION, '4.13', '<')) {
// $lang['canonical_legend'] = 'Kanonische URL';
// $lang['enableCanonical'][0] = 'rel=&quot;canonical&quot; aktivieren';
// $lang['enableCanonical'][1] = 'Der Website rel=&quot;canonical&quot;-Tags hinzufügen.';
// $lang['canonicalLink'][0] = 'Individuelle URL';
// $lang['canonicalLink'][1] = 'Hier können Sie eine individuelle kanonische URL wie z. B. https://example.com/ setzen.';
// $lang['canonicalKeepParams'][0] = 'Query-Parameter';
// $lang['canonicalKeepParams'][1] = 'Standardmäßig entfernt Contao die Query-Parameter in der kanonischen URL. Hier können Sie eine kommagetrennte Liste von Query-Parametern hinzufügen, die erhalten bleiben sollen. Verwenden Sie &quot;*&quot; als Platzhalter.';
// }
10 changes: 0 additions & 10 deletions contao/languages/en/tl_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,3 @@
$lang['head_legend'] = 'Head-Bundle';
$lang['head_twitter_legend'] = 'Head-Bundle - Twitter';
$lang['schema_legend'] = 'Structured data (Schema.org)';

// if (version_compare(VERSION, '4.13', '<')) {
// $lang['canonical_legend'] = 'Canonical URL';
// $lang['enableCanonical'][0] = 'Enable rel="canonical"';
// $lang['enableCanonical'][1] = 'Add rel=&quot;canonical&quot; tags to the website.';
// $lang['canonicalLink'][0] = 'Custom URL';
// $lang['canonicalLink'][1] = 'Here you can set a custom canonical URL like https://example.com/.';
// $lang['canonicalKeepParams'][0] = 'Query parameters';
// $lang['canonicalKeepParams'][1] = 'By default, Contao strips the query parameters in the canonical URL. Here you can add a comma-separated list of query parameters to preserve. Use &quot;*&quot; as a wildcard.';
// }
6 changes: 0 additions & 6 deletions src/DependencyInjection/HeimrichHannotHeadBundleExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

namespace HeimrichHannot\HeadBundle\DependencyInjection;

use Contao\CoreBundle\EventListener\DataContainer\DisableCanonicalFieldsListener;
use HeimrichHannot\HeadBundle\EventListener\CanonicalListener;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
Expand All @@ -25,10 +23,6 @@ public function load(array $configs, ContainerBuilder $container): void

$loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../../config'));
$loader->load('services.yaml');

if (class_exists(DisableCanonicalFieldsListener::class)) {
$container->removeDefinition(CanonicalListener::class);
}
}

public function getAlias(): string
Expand Down
180 changes: 0 additions & 180 deletions src/EventListener/CanonicalListener.php

This file was deleted.

Loading