diff --git a/code/model/Translatable.php b/code/model/Translatable.php index cceea13..ad5b7df 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -1726,18 +1726,25 @@ class Translatable extends DataExtension implements PermissionProvider */ public function MetaTags(&$tags) { - $template = '' . "\n"; - $translations = $this->owner->getTranslations(); - if ($translations) { - $translations = $translations->toArray(); - $translations[] = $this->owner; - - foreach ($translations as $translation) { - $tags .= sprintf($template, - Convert::raw2xml($translation->Title), - i18n::convert_rfc1766($translation->Locale), - $translation->AbsoluteLink() - ); + if ( + ($controller = Controller::curr()) + && count($controller->getRequest()->getVars()) + ) { + $tags .= ''; + } else { + $template = '' . "\n"; + $translations = $this->owner->getTranslations(); + if($translations->count()) { + $translations = $translations->toArray(); + $translations[] = $this->owner; + + foreach($translations as $translation) { + $tags .= sprintf($template, + Convert::raw2xml($translation->Title), + i18n::convert_rfc1766($translation->Locale), + $translation->AbsoluteLink() + ); + } } } }