Replace Simple Sitemap variant path/route with a configurable base path

Created on 28 March 2025, 16 days ago

Problem/Motivation

To better support a federated sitemap between multiple Drupal applications fronted by a CDN configured to route requests to different Drupal applications using namespaced paths, we need to configure a path for each sitemap variant to use as its base path.

For example,
- one Drupal application would configure its base path as "/site-a" and each variant would then have its path be /sitemaps/site-a/[variant_name]/sitemap.xml
- another Drupal application would configure its base path as "/site-b" and each variant would then have its path be /sitemaps/site-a/[variant_name]/sitemap.xml

When installing and uninstall super_sitemap or this submodule, there are no breaking changes with the simple_sitemap functionality.

The sitemap list on the Simple Sitemap status page @ path /admin/config/search/simplesitemap would reflect the new paths, i.e. the sitemap names would like to the new paths.

If utilizing a sitemap index, the sitemap index list of sitemaps would link to the new paths.

Proposed resolution

* Add config option to simple sitemap config form /admin/config/search/simplesitemap/settings

User interface changes

* Adds new group and config option on /admin/config/search/simplesitemap/settings
* Would modify existing simple sitemap paths

API changes

* N/A

Data model changes

* New config for supersitemap; does not impact simple sitemap config

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jasonawant New Orleans, USA

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024