diff --git a/sites/all/modules/unl/unl_migration.php b/sites/all/modules/unl/unl_migration.php index a8364610df920c79d161f1d5a4a03a310bf95559..92622aae6b6c442a9a91d98f8ac200c69112f763 100644 --- a/sites/all/modules/unl/unl_migration.php +++ b/sites/all/modules/unl/unl_migration.php @@ -804,8 +804,13 @@ class Unl_Migration_Tool substr($absoluteUrl, 0, strlen($this->_baseUrl)) == $this->_baseUrl && in_array(basename($parts['path']), $this->_frontierIndexFiles) ) { + $parts['path'] = isset($parts['path']) ? dirname($parts['path']) . '/' : ''; + if (substr($parts['path'], 0, 1) == '/') { + $parts['path'] = substr($parts['path'], 1); + } + $absoluteUrl = $parts['scheme'] . '://' . $parts['host']; - $absoluteUrl .= isset($parts['path']) ? dirname($parts['path']) . '/' : ''; + $absoluteUrl .= $parts['path']; $absoluteUrl .= isset($parts['query']) ? '?' . $parts['query'] : ''; $absoluteUrl .= isset($parts['fragment']) ? '#'.$parts['fragment'] : ''; }