Skip to content

Commit

Permalink
use defined detail route
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar authored Nov 4, 2024
1 parent de75f83 commit ac79858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Actions/SitemapAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function run()
}
$routes[] = $item->getEntitySlug();
$xml .= '<url><loc>'.$this->buildUrl($item->getEntitySlug()).'</loc></url>';
} elseif (isset($item->getRoutes()['detail'])) {
} elseif (isset($item->getRoutes()[$this->detailRouteName])) {
$xml .= '<url><loc>'.$this->buildUrl($item->getRoutes()[$this->detailRouteName]).'</loc></url>';
}
}
Expand Down

0 comments on commit ac79858

Please sign in to comment.