Skip to content

Commit

Permalink
Bug 1881356 - SiteMapIndex extension needs to add alt=media to all ou…
Browse files Browse the repository at this point in the history
…tgoing links to work properly with Google Cloud Storage
  • Loading branch information
dklawren committed Feb 22, 2024
1 parent 1d3ae24 commit ce66040
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extensions/SiteMapIndex/Extension.pm
Expand Up @@ -58,7 +58,7 @@ sub before_robots_txt {
. Bugzilla->params->{sitemapindex_google_host}
. '/storage/v1/b/'
. Bugzilla->params->{sitemapindex_google_bucket} . '/o/'
. 'sitemap_index.xml';
. 'sitemap_index.xml?alt=media';

$args->{vars}{SITEMAP_URL} = $sitemap_url;
}
Expand Down
2 changes: 1 addition & 1 deletion extensions/SiteMapIndex/lib/Util.pm
Expand Up @@ -131,7 +131,7 @@ END
foreach my $filename (@$filelist) {
$index_xml .= "
<sitemap>
<loc>$sitemap_url/$filename</loc>
<loc>$sitemap_url/$filename?alt=media</loc>
<lastmod>$timestamp</lastmod>
</sitemap>
";
Expand Down

0 comments on commit ce66040

Please sign in to comment.