{"action":"created","issue":{"url":"https://api.github.com/repos/petejohanson/angular-hy-res/issues/5","labels_url":"https://api.github.com/repos/petejohanson/angular-hy-res/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/petejohanson/angular-hy-res/issues/5/comments","events_url":"https://api.github.com/repos/petejohanson/angular-hy-res/issues/5/events","html_url":"https://github.com/petejohanson/angular-hy-res/issues/5","id":69469935,"number":5,"title":"The module does not honor the given api endpoint","user":{"login":"XVincentX","id":1416224,"avatar_url":"https://avatars.githubusercontent.com/u/1416224?v=3","gravatar_id":"","url":"https://api.github.com/users/XVincentX","html_url":"https://github.com/XVincentX","followers_url":"https://api.github.com/users/XVincentX/followers","following_url":"https://api.github.com/users/XVincentX/following{/other_user}","gists_url":"https://api.github.com/users/XVincentX/gists{/gist_id}","starred_url":"https://api.github.com/users/XVincentX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XVincentX/subscriptions","organizations_url":"https://api.github.com/users/XVincentX/orgs","repos_url":"https://api.github.com/users/XVincentX/repos","events_url":"https://api.github.com/users/XVincentX/events{/privacy}","received_events_url":"https://api.github.com/users/XVincentX/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-19T22:18:52Z","updated_at":"2015-04-20T02:23:52Z","closed_at":null,"body":"Hey,\r\nI am using this simple code to try an hypermedia API\r\n\r\n```javascript\r\nexport default class pollsService {\r\n  constructor(hrRoot) {\r\n    this.mainLink = hrRoot('http://suerapi.org').follow({ headers: { Accept: 'application/hal+json' } })\r\n\r\n    this.mainLink.$promise.then((hrRootLink)=> {\r\n        console.info(\"Fetched\")\r\n        this.hrRootLink = hrRootLink\r\n        hrRootLink.$$links.questions[0].follow().$promise.then((q) =>{console.info(q)})\r\n    }, (error) => {console.log(`Error during hypermedia fetching: ${error}`)})\r\n\r\n  }\r\n}\r\n```\r\n\r\nEven if the first request is correctly issued to **http://suerapi.org**, the following one are not appending the host given in the first call.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1416224/7221646/c4b28d2c-e6f2-11e4-9a55-87d45c5f5d3b.png)\r\n\r\nI was expecting to see **http://suerapi.org/questions**\r\n\r\nAm I missing something here?"},"comment":{"url":"https://api.github.com/repos/petejohanson/angular-hy-res/issues/comments/94341508","html_url":"https://github.com/petejohanson/angular-hy-res/issues/5#issuecomment-94341508","issue_url":"https://api.github.com/repos/petejohanson/angular-hy-res/issues/5","id":94341508,"user":{"login":"petejohanson","id":202695,"avatar_url":"https://avatars.githubusercontent.com/u/202695?v=3","gravatar_id":"","url":"https://api.github.com/users/petejohanson","html_url":"https://github.com/petejohanson","followers_url":"https://api.github.com/users/petejohanson/followers","following_url":"https://api.github.com/users/petejohanson/following{/other_user}","gists_url":"https://api.github.com/users/petejohanson/gists{/gist_id}","starred_url":"https://api.github.com/users/petejohanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petejohanson/subscriptions","organizations_url":"https://api.github.com/users/petejohanson/orgs","repos_url":"https://api.github.com/users/petejohanson/repos","events_url":"https://api.github.com/users/petejohanson/events{/privacy}","received_events_url":"https://api.github.com/users/petejohanson/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T02:23:52Z","updated_at":"2015-04-20T02:23:52Z","body":"@XVincentX Can you add the HAL response for the root here? My hunch is the responses is a relative one, instead of an absolute URL.\r\n\r\nI have a long standing TODO item about handling relative URL resolution prope rly, I have a feeling that is the issue you are encountering."}}