# HG changeset patch # User Tom Fredrik Blenning # Date 1674429456 -3600 # Node ID 60bc8f62384d160fa98f1e9202e386da4e02f40e # Parent 2fe6713ccd64fe93b34311d855579bbd375cba21 Use internal URL if available to generate Sitemap. diff -r 2fe6713ccd64 -r 60bc8f62384d Sitemap.inc.php --- 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);