diff --git a/src/Middleware/LSTagsMiddleware.php b/src/Middleware/LSTagsMiddleware.php index f1636b1..f03c6ae 100644 --- a/src/Middleware/LSTagsMiddleware.php +++ b/src/Middleware/LSTagsMiddleware.php @@ -29,7 +29,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface if (! empty($params) && ! empty($params['id'])) { // The id parameter contains the slug. We only need the id (int) $id = explode('-', $params['id'], 2)[0]; - $lsTagsString .= ",$rootRouteName".$id ?: $params['id']; + $lsTagsString .= ",$rootRouteName".$id; } return $response->withHeader(LSCacheHeadersEnum::TAG, $lsTagsString);