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.
2 parents 1b0dd76 + 70df96b commit c8882b4Copy full SHA for c8882b4
classes/Sitemap/Sitemap.php
@@ -66,7 +66,7 @@ public function toString(): string
66
$doc = new DOMDocument('1.0', 'UTF-8');
67
$doc->formatOutput = true;
68
69
- $stylesheetUrl = kirby()->site()->canonicalFor("sitemap.xsl");
+ $stylesheetUrl = kirby()->site()->canonicalFor("sitemap.xsl", true);
70
$doc->appendChild($doc->createProcessingInstruction('xml-stylesheet', 'type="text/xsl" href="' . $stylesheetUrl . '"'));
71
72
$root = $doc->createElementNS('http://www.sitemaps.org/schemas/sitemap/0.9', 'urlset');
0 commit comments