Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Jan 13, 2023
1 parent 0eb6df0 commit a3bb545
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/Twig/AppExtension.php
Expand Up @@ -222,6 +222,8 @@ public function containsLinkTo(string $slug, string $content): bool
$path = $this->router->generate($slug);

return str_contains($content, '"'.$path.'"')
|| str_contains($content, '='.$path.'>')
|| str_contains($content, '='.$path.' ')
|| str_contains($content, '"/'.$slug.'"');
}
}

0 comments on commit a3bb545

Please sign in to comment.