CDN via Sitemap: Allow literal sitemap URLs contruction

Created on 15 June 2020, almost 5 years ago
Updated 30 May 2025, 8 days ago

The use-case

Having a Drupal multisite + multilingual setup where a site is determined by the URL path, e.g:
- mysite.com/madrid/en-us
- mysite.com/boston/fr-us
where the language part is added by inbound/outbound processing

My sitemaps are generated by Simple XML sitemap and available at:
- mysite.com/madrid/sitemap.xml
- mysite.com/boston/sitemap.xml
note that language part is missing as Sitemap module is using $GLOBALS['base_url'] to construct the URL unless a custom base_url is specified in Sitemap config.

The issue

The "sitemap" warmer plugin is passing the sitemap URL through Url class which will add the language prefix "/en-us" which means that the sitemap isn't available there as well.

Proposed solution

Add an option which will construct the URL literally, without using "Url" processing.

Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom hugronaphor

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024