diff --git a/src/AppBundle/Controller/PublicApi20Controller.php b/src/AppBundle/Controller/PublicApi20Controller.php index fbbf1a37..7b33748f 100755 --- a/src/AppBundle/Controller/PublicApi20Controller.php +++ b/src/AppBundle/Controller/PublicApi20Controller.php @@ -367,7 +367,7 @@ public function cardAction(string $card_code, Request $request) { return $this->getSingleEntityFromCache("public-api-card-" . $card_code, function() use ($card_code) { return $this->entityManager->getRepository('AppBundle:Card')->findOneBy(['code' => $card_code]); - }, $request, ['imageUrlTemplate' => $this->getParameter('card_image_url') . 'large/{code}.jpg']); + }, $request, ['imageUrlTemplate' => rtrim($this->getParameter('card_image_url'), '/') . '/large/{code}.jpg']); } /** @@ -385,7 +385,7 @@ public function cardsAction(Request $request) { return $this->getFromCache("public-api-cards", function() { return $this->entityManager->getRepository('AppBundle:Card')->findAll(); - }, $request, ['imageUrlTemplate' => $this->getParameter('card_image_url') . 'large/{code}.jpg']); + }, $request, ['imageUrlTemplate' => rtrim($this->getParameter('card_image_url'), '/') . '/large/{code}.jpg']); } /**