private function getPreviousUrl(PaginatorInterface $paginator) : ?string
    {
        $page = $paginator->getCurrentPage();

        if (--$page >= 1) {
            return $this->generateUrl(
                $this->getRoute(),
                $this->getMergedParams(['page' => $page])
            );
        }

        return null;
    }