diff --git a/src/SWP/Bundle/CoreBundle/EventListener/OverrideArticleSlugListener.php b/src/SWP/Bundle/CoreBundle/EventListener/OverrideArticleSlugListener.php index aa78a8570..9f40701dd 100644 --- a/src/SWP/Bundle/CoreBundle/EventListener/OverrideArticleSlugListener.php +++ b/src/SWP/Bundle/CoreBundle/EventListener/OverrideArticleSlugListener.php @@ -51,7 +51,7 @@ public function overrideSlugIfNeeded(ArticleEvent $event): void if ($overrideSlugOnCorrection && null !== $article->getSlug()) { $this->savePreviousRelativeUrl($article); - $slug = empty($package->getSlugline()) ? + $slug = !empty($package->getSlugline()) ? $package->getSlugline() : Transliterator::urlize($article->getTitle()); $article->setSlug($slug); }