Skip to content
Snippets Groups Projects
Commit 813f410c authored by Tim Steiner's avatar Tim Steiner
Browse files

Url rewriter in migration tool now supports query strings.

git-svn-id: file:///tmp/wdn_thm_drupal/trunk@293 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent 32722afc
No related branches found
No related tags found
No related merge requests found
......@@ -113,7 +113,7 @@ class Unl_Migration_Tool
// Add trailing slash if necessary
$baseUrl = trim($baseUrl);
if (substr($baseUrl, -1) != '/') {
$baseUrl .= '/';
//$baseUrl .= '/';
}
$this->_frontierPath = $frontierPath;
......@@ -171,6 +171,8 @@ class Unl_Migration_Tool
$this->_state = self::STATE_CREATING_NODES;
}
print_r($this->_hrefTransform);
exit;
if ($this->_state == self::STATE_CREATING_NODES) {
// Update links and then create new page nodes. (Takes a while)
......@@ -585,6 +587,7 @@ class Unl_Migration_Tool
$absoluteUrl = $parts['scheme'] . '://' . $parts['host'];
$absoluteUrl .= isset($parts['path']) ? $parts['path'] : '';
$absoluteUrl .= isset($parts['query']) ? '?' . $parts['query'] : '';
$absoluteUrl .= isset($parts['fragment']) ? '#'.$parts['fragment'] : '';
if (
......@@ -594,6 +597,7 @@ class Unl_Migration_Tool
) {
$absoluteUrl = $parts['scheme'] . '://' . $parts['host'];
$absoluteUrl .= isset($parts['path']) ? dirname($parts['path']) . '/' : '';
$absoluteUrl .= isset($parts['query']) ? '?' . $parts['query'] : '';
$absoluteUrl .= isset($parts['fragment']) ? '#'.$parts['fragment'] : '';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment