From 53b800ca5240182008e71dc1edd106b2199742ac Mon Sep 17 00:00:00 2001 From: Erison Silva Date: Fri, 12 Aug 2022 21:45:12 +0200 Subject: [PATCH] Fix // for curriculum --- src/EventListener/SetWebSiteInUserListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EventListener/SetWebSiteInUserListener.php b/src/EventListener/SetWebSiteInUserListener.php index f4a5fd2c..3dee30ba 100644 --- a/src/EventListener/SetWebSiteInUserListener.php +++ b/src/EventListener/SetWebSiteInUserListener.php @@ -22,7 +22,7 @@ public function postLoad($entity): void } $webSite = $this->urlGenerator->generate('app_user_profile', ['slug' => $entity->getSlug()], UrlGeneratorInterface::ABSOLUTE_URL); - $webSite = str_replace(['http', 'https', 'www'], '', $webSite); + $webSite = str_replace(['http://', 'https://', 'www'], '', $webSite); $entity->setWebSite($webSite); }