diff --git a/src/Http/Middleware/MercureHandler.php b/src/Http/Middleware/MercureHandler.php index 827e861..2027343 100644 --- a/src/Http/Middleware/MercureHandler.php +++ b/src/Http/Middleware/MercureHandler.php @@ -182,7 +182,7 @@ class MercureHandler // Put an id in there if none already if (empty($data['id']) || $this->config->getOverwriteMessageIds()) { - $data['id'] = (string)Uuid::v7(); + $data['id'] = "urn:uuid:".(string)Uuid::v7(); } // Attempt to create the message @@ -192,7 +192,7 @@ class MercureHandler $this->topicManager->publish($message); }); - return Response::plaintext("urn:uuid:".$message->id."\n"); + return Response::plaintext($message->id."\n"); } private function checkTopicClaims(string|array $topic, array $claims): bool