Sitemap shows articles published in the future or past

Description

Steps to reproduce

  • Add an article and publish it in the future or past (but active in the workflow)

  • The article will be in the sitemap, but it should not

Technical tasks

Code is in:

  • src/Bundle/SitemapBundle/Controller/NewsController.php

  • src/Bundle/SitemapBundle/Controller/DefaultController.php

There has to be a check on publishTime.startDate which should not be published in the future. See the comment from Marijn

Deployment actions

None

Status

Assignee

Unassigned

External issue ID

None

Client

Integrated Marijn

Min. hours

4

Dev hour estimate

2

Epic Link

Sprint

None

Fix versions

Configure