Skip to content

Commit 61d525b

Browse files
committed
Fix bug in sitemap generator
1 parent b933920 commit 61d525b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Models/Tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function getViewUrl(?string $locale = null): string
6969
$locale = $locale ?? app()->getLocale();
7070

7171
return route(HandlesPageRoutes::ROUTE_SEO_TAG_PAGE, [
72-
'tag:slug' => $this->getTranslation('slug', $locale) ?? $this->slug,
72+
'tag' => $this->getTranslation('slug', $locale) ?? $this->slug,
7373
]);
7474
}
7575

src/Services/SitemapGeneratorService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ protected function addLinkableModels(): void
156156
$modelQuery->published();
157157
}
158158

159-
$models = $modelQuery->all();
159+
$models = $modelQuery->get();
160160

161161
foreach ($models as $model) {
162162
if (method_exists($model, 'getViewUrl')) {

0 commit comments

Comments
 (0)