Skip to content

Commit

Permalink
Use package slug only if its not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoran Kabic committed Mar 25, 2024
1 parent c986278 commit fb7e441
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit fb7e441

Please sign in to comment.