Exclude homepage option

Created on 15 August 2022, over 2 years ago
Updated 5 September 2024, 4 months ago

Problem/Motivation

Adding the homepage as a custom link "/" works, but if the homepage is also a node, it will be included a second time in the sitemap. The second occurrence will show up as the node's system path or alias path (e.g. /node/1 or /home).

This has come up twice in the past, both times closed:

A suggestion in those issues indicates that we can manually exclude the homepage node by editing its page. While that's true, it's a bit impractical in my case. We run a distribution with 1,000 websites, so we always look for ways to automate things and not have manual configurations for each site.

The checkbox to exclude duplicates also does not work, I guess because the two entries in the sitemap show up with different paths (despite being the same page).

Also in those issues it's mentioned that it's not common to have nodes as a homepage. I disagree - we do it for all of our sites. Layout Builder and Paragraphs layout solutions enable site builders to do a lot with creating homepages. I'd actually think it's more common than not to have a node as a homepage.

Steps to reproduce

See above, just set a node to the homepage, add "/" as a custom link, and make sure nodes are included in site map.

Proposed resolution

Not quite sure of the most elegant way yet.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Closed: duplicate

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bkosborne New Jersey, USA

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