Last active
August 29, 2015 14:24
-
-
Save ashalan/9ff5b18c1f92d6f6ea4e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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