Fix alternate
This commit is contained in:
parent
c41578a3c3
commit
2ba5f1369f
@ -2366,7 +2366,7 @@ if ($action == 'generatesitemaps' && $usercanedit) {
|
|||||||
}
|
}
|
||||||
if ($tmpshortlangcode != $shortlangcode) {
|
if ($tmpshortlangcode != $shortlangcode) {
|
||||||
$xhtmllink = $domtree->createElement('xhtml:link', '');
|
$xhtmllink = $domtree->createElement('xhtml:link', '');
|
||||||
$xhtmllink->setAttribute("rel", "alternante");
|
$xhtmllink->setAttribute("rel", "alternate");
|
||||||
$xhtmllink->setAttribute("hreflang", $tmpshortlangcode);
|
$xhtmllink->setAttribute("hreflang", $tmpshortlangcode);
|
||||||
$xhtmllink->setAttribute("href", $domainname.($objp->fk_default_home == $tmppage->id ? '/' : (($tmpshortlangcode != substr($object->lang, 0, 2)) ? '/'.$tmpshortlangcode : '').'/'.$tmppage->pageurl.'.php'));
|
$xhtmllink->setAttribute("href", $domainname.($objp->fk_default_home == $tmppage->id ? '/' : (($tmpshortlangcode != substr($object->lang, 0, 2)) ? '/'.$tmpshortlangcode : '').'/'.$tmppage->pageurl.'.php'));
|
||||||
$url->appendChild($xhtmllink);
|
$url->appendChild($xhtmllink);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user