{"action":"created","issue":{"url":"https://api.github.com/repos/torchbox/wagtail/issues/693","repository_url":"https://api.github.com/repos/torchbox/wagtail","labels_url":"https://api.github.com/repos/torchbox/wagtail/issues/693/labels{/name}","comments_url":"https://api.github.com/repos/torchbox/wagtail/issues/693/comments","events_url":"https://api.github.com/repos/torchbox/wagtail/issues/693/events","html_url":"https://github.com/torchbox/wagtail/issues/693","id":45474387,"number":693,"title":"How do I access the domain of a page or the absolute URL of an image?","user":{"login":"davecranwell","id":352835,"avatar_url":"https://avatars.githubusercontent.com/u/352835?v=3","gravatar_id":"","url":"https://api.github.com/users/davecranwell","html_url":"https://github.com/davecranwell","followers_url":"https://api.github.com/users/davecranwell/followers","following_url":"https://api.github.com/users/davecranwell/following{/other_user}","gists_url":"https://api.github.com/users/davecranwell/gists{/gist_id}","starred_url":"https://api.github.com/users/davecranwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davecranwell/subscriptions","organizations_url":"https://api.github.com/users/davecranwell/orgs","repos_url":"https://api.github.com/users/davecranwell/repos","events_url":"https://api.github.com/users/davecranwell/events{/privacy}","received_events_url":"https://api.github.com/users/davecranwell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/torchbox/wagtail/labels/type:Enhancement","name":"type:Enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/torchbox/wagtail/milestones/20","html_url":"https://github.com/torchbox/wagtail/milestones/1.4","labels_url":"https://api.github.com/repos/torchbox/wagtail/milestones/20/labels","id":1439641,"number":20,"title":"1.4","description":"","creator":{"login":"gasman","id":85097,"avatar_url":"https://avatars.githubusercontent.com/u/85097?v=3","gravatar_id":"","url":"https://api.github.com/users/gasman","html_url":"https://github.com/gasman","followers_url":"https://api.github.com/users/gasman/followers","following_url":"https://api.github.com/users/gasman/following{/other_user}","gists_url":"https://api.github.com/users/gasman/gists{/gist_id}","starred_url":"https://api.github.com/users/gasman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gasman/subscriptions","organizations_url":"https://api.github.com/users/gasman/orgs","repos_url":"https://api.github.com/users/gasman/repos","events_url":"https://api.github.com/users/gasman/events{/privacy}","received_events_url":"https://api.github.com/users/gasman/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":94,"state":"closed","created_at":"2015-12-02T14:10:53Z","updated_at":"2016-03-20T23:50:00Z","due_on":"2016-02-29T00:00:00Z","closed_at":"2016-03-20T23:50:00Z"},"comments":5,"created_at":"2014-10-10T12:15:53Z","updated_at":"2016-08-24T20:52:23Z","closed_at":"2016-03-01T12:15:19Z","body":"There are occasions where it's necessary to generate absolute URLs, or at least determine the domain of a certain page.\r\n\r\nFor example with OpenGraph/Schema.org tags, the canonical URL of a page is necessary. This is possible with `page.full_url()`. However OpenGraph also requires an absolute URL for the `og:image` meta tag i.e an absolute URL for an image. How would that be generated? Perhaps, given that the image library is domain-agnostic, it would be better if there were an option to get the domain on it's own, of any page viewed, so it could be prefixed to a relative image URL?\r\n\r\nIt feels like there's a need for a `page.get_site()` (returning a `Site`) or similar, to make access easier for the non-technical.\r\n"},"comment":{"url":"https://api.github.com/repos/torchbox/wagtail/issues/comments/242204191","html_url":"https://github.com/torchbox/wagtail/issues/693#issuecomment-242204191","issue_url":"https://api.github.com/repos/torchbox/wagtail/issues/693","id":242204191,"user":{"login":"Braintelligence","id":6761196,"avatar_url":"https://avatars.githubusercontent.com/u/6761196?v=3","gravatar_id":"","url":"https://api.github.com/users/Braintelligence","html_url":"https://github.com/Braintelligence","followers_url":"https://api.github.com/users/Braintelligence/followers","following_url":"https://api.github.com/users/Braintelligence/following{/other_user}","gists_url":"https://api.github.com/users/Braintelligence/gists{/gist_id}","starred_url":"https://api.github.com/users/Braintelligence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Braintelligence/subscriptions","organizations_url":"https://api.github.com/users/Braintelligence/orgs","repos_url":"https://api.github.com/users/Braintelligence/repos","events_url":"https://api.github.com/users/Braintelligence/events{/privacy}","received_events_url":"https://api.github.com/users/Braintelligence/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T20:52:23Z","updated_at":"2016-08-24T20:52:23Z","body":"Hi guys, was this solved yet?\r\nThanks to @davecranwell for a temporary solution!"}}
{"actor":{"display_login":"Braintelligence"}}