- last update
over 1 year ago 25 pass, 9 fail - Issue created by @RandalV
The last submitted patch, domain-language.patch, failed testing. View results →
The sitemap.xsl link for the xml file gets built by using the base url and then pasting the route path behind it:
$scheme = \Drupal::request()->getScheme();
$context = $this->sitemap->getContext();
$base_url = $scheme . '://' . $url_settings['domains'][$context['language']];
$xls_url = Url::fromRoute('xmlsitemap.sitemap_xsl');
$xls_url = $base_url . '/' . $xls_url->getInternalPath();
This breaks websites that run in subfolders.
Create a Drupal website that runs in a subfolder, and generate the sitemaps with styling enabled in the settings.
Let's build the .XSL file url the way Drupal intends it, by using the `Url::fromRoute()` method and adding the language in the options array.
I'll attach a patch for this.
I'm sorry if an issue for this already exists, I couldn't find one.
Needs review
1.0
Code
The last submitted patch, domain-language.patch, failed testing. View results →