{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/10675","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/10675/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/10675/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/10675/events","html_url":"https://github.com/emberjs/ember.js/issues/10675","id":63008204,"number":10675,"title":"Image `src` Always Fetched, Even When Guarded","user":{"login":"jherdman","id":3300,"avatar_url":"https://avatars.githubusercontent.com/u/3300?v=3","gravatar_id":"","url":"https://api.github.com/users/jherdman","html_url":"https://github.com/jherdman","followers_url":"https://api.github.com/users/jherdman/followers","following_url":"https://api.github.com/users/jherdman/following{/other_user}","gists_url":"https://api.github.com/users/jherdman/gists{/gist_id}","starred_url":"https://api.github.com/users/jherdman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jherdman/subscriptions","organizations_url":"https://api.github.com/users/jherdman/orgs","repos_url":"https://api.github.com/users/jherdman/repos","events_url":"https://api.github.com/users/jherdman/events{/privacy}","received_events_url":"https://api.github.com/users/jherdman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-19T14:51:31Z","updated_at":"2015-03-19T15:12:30Z","closed_at":null,"body":"I'm upgrading an application from 1.8.1 to 1.10, and I've run into a bit of an ugly problem with template rendering.\r\n\r\nThe offending code is as follows:\r\n\r\n```handlebars\r\n    {{#if hasCoach}}\r\n      {{#link-to \"your-coach\" class=\"pn-mainMenu__item grid__item one-whole close\"}}\r\n      <div class=\"grid grid--full\">\r\n        <section class=\"pn-mainMenu__text grid__item nine-tenths push--one-tenth\">\r\n          <img {{bind-attr src=\"coachPhotoUrl\"}} class=\"inline-icon rounded\">\r\n          Coach {{coachFirstName}}\r\n        </section>\r\n      </div>\r\n      {{/link-to}}\r\n    {{/if}}\r\n```\r\n\r\nThis is found on a menu bar in our application, and these values will change depending on which membership a student has selected.\r\n\r\nIn the offending scenario we start by visiting a membership where `hasCoach` is false, ergo the snippet above should not be rendered. Next we switch to a membership that *does* have a coach (render the snippet), and then *back* to the membership without a coach. At this point the following error is in the JavaScript console:\r\n\r\n```\r\nGET http://localhost:4444/undefined 404 (Not Found)\r\n```\r\n\r\nI can verify that it's the above snippet causing the problem by commenting out the image, at which point the error doesn't occur.\r\n\r\nI've attempted 1.11.0-beta5 and the same issue is in play.\r\n\r\nI haven't a JSBin to replicate this yet, but I will attempt to do so soon. I'm available to ScreenHero if anyone is interested in trying to tackle this."},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/83619001","html_url":"https://github.com/emberjs/ember.js/issues/10675#issuecomment-83619001","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/10675","id":83619001,"user":{"login":"jherdman","id":3300,"avatar_url":"https://avatars.githubusercontent.com/u/3300?v=3","gravatar_id":"","url":"https://api.github.com/users/jherdman","html_url":"https://github.com/jherdman","followers_url":"https://api.github.com/users/jherdman/followers","following_url":"https://api.github.com/users/jherdman/following{/other_user}","gists_url":"https://api.github.com/users/jherdman/gists{/gist_id}","starred_url":"https://api.github.com/users/jherdman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jherdman/subscriptions","organizations_url":"https://api.github.com/users/jherdman/orgs","repos_url":"https://api.github.com/users/jherdman/repos","events_url":"https://api.github.com/users/jherdman/events{/privacy}","received_events_url":"https://api.github.com/users/jherdman/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T15:12:30Z","updated_at":"2015-03-19T15:12:30Z","body":"Do you have a JSBin replicating the issue? It'd certainly save me some time trying to replicate the problem :)"}}