diff --git a/code/model/Translatable.php b/code/model/Translatable.php index 62f8c94..4230958 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -1466,13 +1466,21 @@ class Translatable extends DataExtension implements PermissionProvider { */ function MetaTags(&$tags) { $template = '' . "\n"; - $translations = $this->owner->getTranslations(); - if($translations) foreach($translations as $translation) { + $translations = $this->owner->getTranslations(); + if($translations) { + $tags .= sprintf($template, + Convert::raw2xml($this->owner->Title), + i18n::convert_rfc1766($this->owner->Locale), + $this->owner->AbsoluteLink() + ); + + foreach($translations as $translation) { $tags .= sprintf($template, Convert::raw2xml($translation->Title), i18n::convert_rfc1766($translation->Locale), $translation->AbsoluteLink() ); + } } }