Prevent early exclusion of non accessible entities

Created on 22 May 2025, 16 days ago

Problem/Motivation

The sitemap link entities are filtered by their access during the early stage of sitemap generation.
This can cause issue if the entity access vary with context. Ex: within a multidomain website, some entities may only be accessible to one domain. The sitemap generation via the UI will check entity access for the currently active domain, the drush command for the base domain.
As a result, some sitemap links are missing even if they are accessible for the sitemap.
NB: This is a particular issue that raise within our codebase due to another module adding the domain record as sitemap context, but it could still be valid for other cases.

Steps to reproduce

Proposed resolution

Don't exclude sitemap entity with access false that early or ideally provide a hook to alter the query.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France GuillaumePacilly

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