changeset 136:60bc8f62384d default tip

Use internal URL if available to generate Sitemap.
author Tom Fredrik Blenning <bfg@bfgconsult.no>
date Mon, 23 Jan 2023 00:17:36 +0100
parents 2fe6713ccd64
children
files Sitemap.inc.php
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Sitemap.inc.php	Mon Jan 23 00:16:26 2023 +0100
+++ b/Sitemap.inc.php	Mon Jan 23 00:17:36 2023 +0100
@@ -151,7 +151,8 @@
     usort($urls, "cmp_length_lex");
 
     foreach($urls as $location) {
-      $headers = Http::getHeaders($location, 5);
+      $loc=$this->options->getInternalFromExternal($location, $base);
+      $headers = Http::getHeaders($loc, 5);
 
       $location = htmlentities($location);