Alter on simple_sitemap.sitemap_default route doesn't seem to work

Created on 13 April 2023, over 1 year ago
Updated 26 September 2023, about 1 year ago

Hi,

I'm using drupal/simple_sitemap 3.11.0 with drupal/domain_simple_sitemap dev-2.x.

For some reason the RouteSubscriber where it should alter the route simple_sitemap.sitemap_default and set the DomainSimpleSitemapController controller as default doesn't work. When visiting the /sitemap.xml path I never go to the DomainSimpleSitemapController::getSitemap, it always sends me to the normal SimpleSitemapController::getSitemap.

I added a quick workaround for in the simple sitemap module to make it work for now, but its not great.

Who else is experiencing this issue?

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇳🇱Netherlands Nicasso

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

Comments & Activities

  • Issue created by @Nicasso
  • Status changed to Needs review about 1 year ago
  • 🇪🇸Spain rodrigoaguilera Barcelona

    I think I found a simpler workaround.

    The current code is resetting all the defaults for the route, including _disable_route_normalizer.

    The path proposed only overrides the controller, not all the defaults.

Production build 0.71.5 2024