Commit ade21a0e authored by git's avatar git Committed by RenatoG
Browse files

Issue #2884978 by Nidhi.p.addweb, bmango, millionleaves, RenatoG, druajay:...

Issue #2884978 by Nidhi.p.addweb, bmango, millionleaves, RenatoG, druajay: Double Slash in path after main domain
parent f638bc1a
......@@ -130,7 +130,7 @@ function xmlsitemap_engines_submit_engines(array $smids = []) {
*/
function xmlsitemap_engines_submit_sitemaps($url, array $sitemaps) {
foreach ($sitemaps as $sitemap) {
$sitemap_path = UrlHelper::isExternal($sitemap->uri['path']) ? $sitemap->uri['path'] : 'base://' . $sitemap->uri['path'];
$sitemap_path = UrlHelper::isExternal($sitemap->uri['path']) ? $sitemap->uri['path'] : 'base:/' . $sitemap->uri['path'];
$sitemap_url = Url::fromUri($sitemap_path, $sitemap->uri['options'])->toString();
$submit_url = xmlsitemap_engines_prepare_url($url, $sitemap_url);
try {
......
Markdown is supported
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