-{capture assign='headContent'}
- <link rel="canonical" href="{link controller='RecentActivityList'}{/link}">
-{/capture}
-
{include file='header'}
{if $eventList|count}
-{capture assign='headContent'}
- <link rel="canonical" href="{link controller='Team'}{/link}">
-{/capture}
-
{include file='header'}
{foreach from=$objects->getTeams() item=team}
{assign var='contentHeader' value=' '}{* necessary to hide default content header in heade.tpl *}
{capture assign='headContent'}
- <link rel="canonical" href="{link controller='User' object=$user}{/link}">
-
{event name='javascriptInclude'}
<script data-relocate="true">
{if $__wcf->getUser()->userID && $__wcf->getUser()->userID != $user->userID}
{capture assign='pageTitle'}{$__wcf->getActivePage()->getTitle()}{if $pageNo > 1} - {lang}wcf.page.pageNo{/lang}{/if}{/capture}
{capture assign='headContent'}
- <link rel="canonical" href="{link controller='UsersOnlineList'}{/link}">
+ <link rel="canonical" href="{link controller='UsersOnlineList'}{if $pageNo > 1}pageNo={@$pageNo}{/if}{/link}">
{if USERS_ONLINE_PAGE_REFRESH > 0}
<meta http-equiv="refresh" content="{@USERS_ONLINE_PAGE_REFRESH}; url={link controller='UsersOnlineList'}{if $pageNo > 1}pageNo={@$pageNo}&{/if}sortField={@$sortField}&sortOrder={@$sortOrder}{/link}">
namespace wcf\page;
use wcf\data\user\activity\event\ViewableUserActivityEventList;
use wcf\system\page\PageLocationManager;
+use wcf\system\request\LinkHandler;
use wcf\system\user\activity\event\UserActivityEventHandler;
use wcf\system\WCF;
*/
public $eventList = null;
+ /**
+ * @inheritDoc
+ */
+ public function readParameters() {
+ parent::readParameters();
+
+ $this->canonicalURL = LinkHandler::getInstance()->getLink('RecentActivityList');
+ }
+
/**
* @inheritDoc
*/
namespace wcf\page;
use wcf\data\user\TeamList;
use wcf\system\page\PageLocationManager;
+use wcf\system\request\LinkHandler;
use wcf\system\WCF;
/**
*/
public $objectListClassName = TeamList::class;
+ /**
+ * @inheritDoc
+ */
+ public function readParameters() {
+ parent::readParameters();
+
+ $this->canonicalURL = LinkHandler::getInstance()->getLink('Team');
+ }
+
/**
* @inheritDoc
*/