Exclude content with a "noindex" robots meta tag

Created on 11 September 2019, about 5 years ago
Updated 19 August 2024, 3 months ago

Problem/Motivation

Content with a "noindex" robots meta tag shouldn't be listed in the sitemap as per SEO best practices.

Proposed resolution

Provide an option to exclude content with a "noindex" robots metatag from the sitemap. This option is available only if the Metatag module is enabled.

Remaining tasks

Reviews needed, tests to be written.

User interface changes

Added a new option "Exclude entities with a "noindex" metatag." in the "Simple XML Sitemap Settings" at admin/config/search/simplesitemap.

API changes

None.

Data model changes

Configuration schema updated with a new key remove_noindex.

Release notes snippet

Added new option "remove_noindex" which excludes entities that have the Metatag option "noindex" enabled from the sitemap.

Original report by marco-s โ†’

โœจ Feature request
Status

Closed: won't fix

Version

4.0

Component

Code

Created by

๐Ÿ‡จ๐Ÿ‡ญSwitzerland marco-s Switzerland๐Ÿ‡จ๐Ÿ‡ญ

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

Merge Requests

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