Skip to content

Bug 2009837 - After recent update sitemap extensions is including improperly formatted urls in the sitemap gz files#2543

Merged
dklawren merged 1 commit intomozilla-bteam:masterfrom
dklawren:2009837
Jan 13, 2026
Merged

Bug 2009837 - After recent update sitemap extensions is including improperly formatted urls in the sitemap gz files#2543
dklawren merged 1 commit intomozilla-bteam:masterfrom
dklawren:2009837

Conversation

@dklawren
Copy link
Collaborator

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

Example: https://bugzilla.mozilla.org/sitemap//sitemap4.xml.gz

…roperly formatted urls in the sitemap gz files
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug where sitemap URLs were being generated with double slashes due to improper string concatenation. The issue caused URLs like https://bugzilla.mozilla.org/sitemap//sitemap4.xml.gz instead of the correct https://bugzilla.mozilla.org/sitemap/sitemap4.xml.gz.

Changes:

  • Removed trailing slash from the sitemap path string to prevent double slashes when concatenating with filenames

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dklawren dklawren merged commit 5443cb6 into mozilla-bteam:master Jan 13, 2026
14 checks passed
@dklawren dklawren deleted the 2009837 branch January 13, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants