Skip to content

Commit c8882b4

Browse files
authored
Merge pull request #161 from tomsl123/main
2 parents 1b0dd76 + 70df96b commit c8882b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/Sitemap/Sitemap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function toString(): string
6666
$doc = new DOMDocument('1.0', 'UTF-8');
6767
$doc->formatOutput = true;
6868

69-
$stylesheetUrl = kirby()->site()->canonicalFor("sitemap.xsl");
69+
$stylesheetUrl = kirby()->site()->canonicalFor("sitemap.xsl", true);
7070
$doc->appendChild($doc->createProcessingInstruction('xml-stylesheet', 'type="text/xsl" href="' . $stylesheetUrl . '"'));
7171

7272
$root = $doc->createElementNS('http://www.sitemaps.org/schemas/sitemap/0.9', 'urlset');

0 commit comments

Comments
 (0)