We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f62df36 commit 22e7533Copy full SHA for 22e7533
app/site/models/Sitemap.php
@@ -54,8 +54,8 @@ function ($el) {
54
'rewrite' => $rewrite->id,
55
'changefreq' => $el->change_freq,
56
'priority' => $el->priority,
57
- 'loc' => $rewrite->getUrl(),
58
- 'lastmod' => $rewrite->getUpdatedAt(),
+ 'loc' => $this->getRouting()->getUrl('frontend.root').ltrim($rewrite->getUrl(), '/'),
+ 'lastmod' => (new DateTime($rewrite->getUpdatedAt()))->format('Y-m-d'),
59
];
60
},
61
$this->sitemap_rewriteList()->fetchAll()
0 commit comments