From 4ccb5fe9b65f7bd0e120ac6ed78d91b02dfd5fc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Sun, 27 Apr 2025 17:44:31 +0200 Subject: [PATCH] fix: entry id must be a valid URL --- src/Controller/WatchListController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/WatchListController.php b/src/Controller/WatchListController.php index 42205b3..4629f37 100644 --- a/src/Controller/WatchListController.php +++ b/src/Controller/WatchListController.php @@ -511,7 +511,7 @@ class WatchListController extends AbstractController $entries = []; foreach ($domain->getEvents()->filter(fn (DomainEvent $e) => $e->getDate()->diff(new \DateTimeImmutable('now'))->y <= 10)->getIterator() as $event) { $entries[] = (new Entry()) - ->setId($baseUrl . "/api/domains/" . $domain->getLdhName() . '/events/' . $event->getId()) + ->setId($baseUrl . "/api/domains/" . $domain->getLdhName() . '#events-' . $event->getId()) ->setTitle($domain->getLdhName() . ': ' . $event->getAction(). ' - event update') ->setDescription("Domain name event") ->setLink($baseUrl . "/#/search/domain/" . $domain->getLdhName()) @@ -542,7 +542,7 @@ class WatchListController extends AbstractController } $entries[] = (new Entry()) - ->setId($baseUrl . "/api/domains/" . $domain->getLdhName() . '/status/' . $domainStatus->getId()) + ->setId($baseUrl . "/api/domains/" . $domain->getLdhName() . '#status-' . $domainStatus->getId()) ->setTitle($domain->getLdhName() . ' - EPP status update') ->setDescription("There has been a change in the EPP status of the domain name.") ->setLink($baseUrl . "/#/search/domain/" . $domain->getLdhName())