Closed Bug 2009837 Opened 1 month ago Closed 1 month ago

After recent update sitemap extensions is including improperly formatted urls in the sitemap gz files

Categories

(bugzilla.mozilla.org :: Extensions, defect)

Production
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: dkl, Assigned: dkl)

Details

(Keywords: regression)

Attachments

(1 file)

An extra slash is being added which cause an error when trying to access.

diff --git i/extensions/SiteMapIndex/lib/Util.pm w/extensions/SiteMapIndex/lib/Util.pm
index c158f7984..4ae6743ae 100644
--- i/extensions/SiteMapIndex/lib/Util.pm
+++ w/extensions/SiteMapIndex/lib/Util.pm
@@ -132,7 +132,7 @@ END
   # Also if the GCP bucket name ever changes, we need to update the nginx config at
   # https://github.com/mozilla/webservices-infra/blob/main/bugzilla/k8s/bugzilla/templates/nginx-configmap.yaml
   # in addition to Bugzilla params.
-  my $sitemap_url = Bugzilla->localconfig->urlbase . 'sitemap/';
+  my $sitemap_url = Bugzilla->localconfig->urlbase . 'sitemap';
   foreach my $filename (@$filelist) {
     $index_xml .= "
   <sitemap>

Authored by https://github.com/dklawren
https://github.com/mozilla-bteam/bmo/commit/5443cb6d77503e4d75e25832b38aef675191285f
[master] Bug 2009837 - After recent update sitemap extensions is including improperly formatted urls in the sitemap gz files

Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: