CuBoulder / tiamat-theme

University of Colorado Boulder Drupal 9+ base theme
GNU General Public License v2.0
3 stars 0 forks source link

Sitemap XSL generator path #1320

Open jcsparks opened 2 months ago

jcsparks commented 2 months ago

It looks like sitemaps on sites have the XSL generator path as a root-relative link instead of a site-relative link (e.g. https://www.colorado.edu/sitemap_generator/default/sitemap.xsl instead of https://www.colorado.edu/strategicrelations/sitemap_generator/default/sitemap.xsl )

This leads to odd behavior where the sitemap XML is generated but it's not viewable in a browser because the XSL file to render it is coming back as a 404.

Not sure if this is just an issue with the module or if there's a config element that we can modify to correct this.

timurtripp commented 2 months ago

This is odd as they appear to have added a base_path() call to get the correct base path. I wonder what's causing that to not work on our sites.

https://git.drupalcode.org/project/simple_sitemap/-/blob/4.x/src/Plugin/simple_sitemap/SitemapGenerator/SitemapWriter.php?ref_type=heads#L55