Skip to content

Commit

Permalink
#18 Remove link from sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate authored Sep 5, 2019
1 parent 766baf6 commit 1e366ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Controllers/SitemapController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public function sitemapAction(
$nodeTypes = $this->get('em')
->getRepository(NodeType::class)
->findBy([
'reachable' => true
'reachable' => true,
'name' => ['!=', 'Link'], // Prevent links to be listed
]);

/*
Expand Down

0 comments on commit 1e366ed

Please sign in to comment.