add canonical rel
This commit is contained in:
parent
98acec74f5
commit
23bafaba26
@ -159,6 +159,11 @@ class PublicAction extends Action
|
||||
$this->element('link', array('rel' => 'EditURI',
|
||||
'type' => 'application/rsd+xml',
|
||||
'href' => $rsd));
|
||||
|
||||
if ($this->page != 1) {
|
||||
$this->element('link', array('rel' => 'canonical',
|
||||
'href' => common_local_url('public')));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -233,4 +233,12 @@ class ShowgroupAction extends GroupAction
|
||||
$this->raw(common_markup_to_html($m));
|
||||
$this->elementEnd('div');
|
||||
}
|
||||
|
||||
function extraHead()
|
||||
{
|
||||
if ($this->page != 1) {
|
||||
$this->element('link', array('rel' => 'canonical',
|
||||
'href' => $this->group->homeUrl()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -212,6 +212,11 @@ class ShowstreamAction extends ProfileAction
|
||||
$this->element('link', array('rel' => 'EditURI',
|
||||
'type' => 'application/rsd+xml',
|
||||
'href' => $rsd));
|
||||
|
||||
if ($this->page != 1) {
|
||||
$this->element('link', array('rel' => 'canonical',
|
||||
'href' => $this->profile->profileurl));
|
||||
}
|
||||
}
|
||||
|
||||
function showEmptyListMessage()
|
||||
|
Loading…
Reference in New Issue
Block a user