{"action":"closed","issue":{"url":"https://api.github.com/repos/tonystar/drupal-domain-path-rewrite/issues/3","labels_url":"https://api.github.com/repos/tonystar/drupal-domain-path-rewrite/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/tonystar/drupal-domain-path-rewrite/issues/3/comments","events_url":"https://api.github.com/repos/tonystar/drupal-domain-path-rewrite/issues/3/events","html_url":"https://github.com/tonystar/drupal-domain-path-rewrite/issues/3","id":94800390,"number":3,"title":"Alias data is being set to absolute url's","user":{"login":"ashalan","id":4494429,"avatar_url":"https://avatars.githubusercontent.com/u/4494429?v=3","gravatar_id":"","url":"https://api.github.com/users/ashalan","html_url":"https://github.com/ashalan","followers_url":"https://api.github.com/users/ashalan/followers","following_url":"https://api.github.com/users/ashalan/following{/other_user}","gists_url":"https://api.github.com/users/ashalan/gists{/gist_id}","starred_url":"https://api.github.com/users/ashalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashalan/subscriptions","organizations_url":"https://api.github.com/users/ashalan/orgs","repos_url":"https://api.github.com/users/ashalan/repos","events_url":"https://api.github.com/users/ashalan/events{/privacy}","received_events_url":"https://api.github.com/users/ashalan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tonystar/drupal-domain-path-rewrite/labels/Core%20/%20Refactoring","name":"Core / Refactoring","color":"000000"},{"url":"https://api.github.com/repos/tonystar/drupal-domain-path-rewrite/labels/Priority%20Support","name":"Priority Support","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-13T20:10:28Z","updated_at":"2015-07-16T13:32:09Z","closed_at":"2015-07-16T13:32:09Z","body":"This patch should do it\r\n```\r\ndiff --git a/domain_path_rewrite.module b/domain_path_rewrite.module\r\nindex 6b8d684..4c6603e 100644\r\n--- a/domain_path_rewrite.module\r\n+++ b/domain_path_rewrite.module\r\n@@ -68,7 +68,9 @@ function _domain_path_rewrite_domain_path($source) {\r\n       $cache[$row->source] = array(\r\n         'domain_id' => $row->domain_id,\r\n         'path' => $path,\r\n-        'url' => $domains[$row->domain_id]->scheme . '://' . $domains[$row->domain_id]->subdomain . ($path ? '/' . $path : ''),\r\n+        'domain' => $domains[$row->domain_id]->scheme . '://' . $domains[$row->domain_id]->subdomain,\r\n+        'absolute_url' => $domains[$row->domain_id]->scheme . '://' . $domains[$row->domain_id]->subdomain . ($path ? '/' . $path : ''),\r\n+        'url' => ($path ? '/' . $path : ''),\r\n       );\r\n     }\r\n   }\r\n```\r\n"}}