Customize the sitemap path

Created on 17 March 2023, about 2 years ago
Updated 13 August 2024, 8 months ago

Problem/Motivation

Currently, the sitemap module has a hard-coded path at /sitemap.

Sites may want to customize the path to meet their needs.

Proposed resolution

Add a configuration setting, and corresponding field on the Sitemap settings page, to let an administrator set a custom path for the sitemap (the default setting would be /sitemap).

Add a route subscriber to add the sitemap.page route dynamically.

Update existing tests.

Remaining tasks

User interface changes

Add a field to the Sitemap settings page to let an administrator set a custom path for the sitemap.

API changes

Add a route subscriber service (to add the sitemap.page route dynamically).

Data model changes

Add a path configuration setting, of type string, whose default setting is /sitemap.

✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada mparker17 UTC-4

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