public function canonical()
    {
        $routePath = $this->getCurrentPath(true);
        if ($routePath === null) {
            return null;
        }
        $params = $this->app->getRoute()->getRouteParams();
        $params[0] = $routePath;

        return $this->getUrlManager()->createAbsoluteUrl($params);
    }