Commit 884671ed authored by andrei.dincu's avatar andrei.dincu
Browse files

Issue #2249723 by andrei.dincu: Set correct base_url for sitemap

parent f9582724
......@@ -519,7 +519,7 @@ function xmlsitemap_sitemap_uri(XmlSitemapInterface $sitemap) {
drupal_alter('xmlsitemap_context_url_options', $uri['options'], $sitemap->getContext());
$uri['options'] += array(
'absolute' => TRUE,
'base_url' => $GLOBALS['base_url'],
'base_url' => \Drupal::config('xmlsitemap.settings')->get('base_url')
);
return $uri;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment