public function getSelfSubUrl($entity = null)
    {
        if ($entity === null) {
            return null;
        }

        return Router::url($this->_getRepositoryRoutingParameters($this->_repository) + [
            '_method' => 'GET',
            'action' => 'view',
            $entity->get($this->_repository->getPrimaryKey()),
        ], $this->_view->viewVars['_absoluteLinks']);
    }