Commit cd0bf3dd authored by RenatoG's avatar RenatoG Committed by RenatoG
Browse files

Issue #2912413 by RenatoG, drone.ah: sitemap.xml index missing <loc>

parent 757708f3
...@@ -55,7 +55,7 @@ class XmlSitemapIndexWriter extends XmlSitemapWriter { ...@@ -55,7 +55,7 @@ class XmlSitemapIndexWriter extends XmlSitemapWriter {
for ($i = 1; $i <= $this->sitemap->chunks; $i++) { for ($i = 1; $i <= $this->sitemap->chunks; $i++) {
$url_options['query']['page'] = $i; $url_options['query']['page'] = $i;
$element = [ $element = [
'loc' => Url::fromRoute('xmlsitemap.sitemap_xml', [], $url_options), 'loc' => Url::fromRoute('xmlsitemap.sitemap_xml', [], $url_options)->toString(),
// @todo Use the actual lastmod value of the chunk file. // @todo Use the actual lastmod value of the chunk file.
'lastmod' => gmdate($lastmod_format, REQUEST_TIME), 'lastmod' => gmdate($lastmod_format, REQUEST_TIME),
]; ];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment