{"action":"created","issue":{"url":"https://api.github.com/repos/theforeman/foreman/issues/2687","labels_url":"https://api.github.com/repos/theforeman/foreman/issues/2687/labels{/name}","comments_url":"https://api.github.com/repos/theforeman/foreman/issues/2687/comments","events_url":"https://api.github.com/repos/theforeman/foreman/issues/2687/events","html_url":"https://github.com/theforeman/foreman/pull/2687","id":105363026,"number":2687,"title":"fixes #11723 - Build PXE Default fails","user":{"login":"phirince","id":4796755,"avatar_url":"https://avatars.githubusercontent.com/u/4796755?v=3","gravatar_id":"","url":"https://api.github.com/users/phirince","html_url":"https://github.com/phirince","followers_url":"https://api.github.com/users/phirince/followers","following_url":"https://api.github.com/users/phirince/following{/other_user}","gists_url":"https://api.github.com/users/phirince/gists{/gist_id}","starred_url":"https://api.github.com/users/phirince/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phirince/subscriptions","organizations_url":"https://api.github.com/users/phirince/orgs","repos_url":"https://api.github.com/users/phirince/repos","events_url":"https://api.github.com/users/phirince/events{/privacy}","received_events_url":"https://api.github.com/users/phirince/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/theforeman/foreman/labels/Needs%20testing","name":"Needs testing","color":"fbca04"},{"url":"https://api.github.com/repos/theforeman/foreman/labels/Not%20yet%20reviewed","name":"Not yet reviewed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-08T11:53:09Z","updated_at":"2015-09-10T08:30:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/2687","html_url":"https://github.com/theforeman/foreman/pull/2687","diff_url":"https://github.com/theforeman/foreman/pull/2687.diff","patch_url":"https://github.com/theforeman/foreman/pull/2687.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/theforeman/foreman/issues/comments/139166357","html_url":"https://github.com/theforeman/foreman/pull/2687#issuecomment-139166357","issue_url":"https://api.github.com/repos/theforeman/foreman/issues/2687","id":139166357,"user":{"login":"domcleal","id":482089,"avatar_url":"https://avatars.githubusercontent.com/u/482089?v=3","gravatar_id":"","url":"https://api.github.com/users/domcleal","html_url":"https://github.com/domcleal","followers_url":"https://api.github.com/users/domcleal/followers","following_url":"https://api.github.com/users/domcleal/following{/other_user}","gists_url":"https://api.github.com/users/domcleal/gists{/gist_id}","starred_url":"https://api.github.com/users/domcleal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domcleal/subscriptions","organizations_url":"https://api.github.com/users/domcleal/orgs","repos_url":"https://api.github.com/users/domcleal/repos","events_url":"https://api.github.com/users/domcleal/events{/privacy}","received_events_url":"https://api.github.com/users/domcleal/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T08:30:23Z","updated_at":"2015-09-10T08:30:23Z","body":"> I was not aware of default_template_url helper. Is it documented somewhere? Apparently I missed it.\r\n\r\nI don't think so, I just saw it's used in our default template as an alternative to foreman_url: https://github.com/theforeman/foreman/blob/develop/app/views/unattended/pxe/PXELinux_default.erb#L31, but it's specifically to generate URLs to host-independent templates, not much help for you now I see.\r\n\r\n> So I had to disable safe mode and use foreman_url.\r\n\r\nRight, I suspected as much!  I'm fine with fixing this now I understand how you're using it as the rest of the method does actually seem to be designed with this in mind.\r\n\r\nWould you mind adding a unit test for this?  It ought to be quite simple, as you just run foreman_url without setting `@host`.  test/lib/foreman/renderer_test.rb might be the best place for it.\r\n\r\n> I want it to point to the proxy url and not the foreman master instance. I was trying to achieve that using foreman_url, but even that didn't help me. Is there any way to achieve this with the current version? If not I'll open a separate bug for that.\r\n\r\nhttp://projects.theforeman.org/issues/7828 tracks making foreman_url point to Foreman's base URL without a template URL etc.  There's no way to get the URL of any smart proxy, but http://projects.theforeman.org/issues/10286 tracked and started to implement this to match the proxy's template feature."}}