Skip to content

Instantly share code, notes, and snippets.

@ashalan
Last active August 29, 2015 14:24
Show Gist options
  • Save ashalan/9ff5b18c1f92d6f6ea4e to your computer and use it in GitHub Desktop.
Save ashalan/9ff5b18c1f92d6f6ea4e to your computer and use it in GitHub Desktop.
diff --git a/domain_path_rewrite.module b/domain_path_rewrite.module
index 6b8d684..4c6603e 100644
--- a/domain_path_rewrite.module
+++ b/domain_path_rewrite.module
@@ -68,7 +68,9 @@ function _domain_path_rewrite_domain_path($source) {
$cache[$row->source] = array(
'domain_id' => $row->domain_id,
'path' => $path,
- 'url' => $domains[$row->domain_id]->scheme . '://' . $domains[$row->domain_id]->subdomain . ($path ? '/' . $path : ''),
+ 'domain' => $domains[$row->domain_id]->scheme . '://' . $domains[$row->domain_id]->subdomain,
+ 'absolute_url' => $domains[$row->domain_id]->scheme . '://' . $domains[$row->domain_id]->subdomain . ($path ? '/' . $path : ''),
+ 'url' => ($path ? '/' . $path : ''),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment