iron router - Images not loading anymore when re-rendering Meteor template -


i extended discovermeteor tutorial , added image every post in post_item.html:

<img src="discover.png" height="40px" /> 

after putting discover.png in public folder seems work expected. if open detail page (click on 'discuss') , come overview (click on 'microscope' in header) pictures or not loading anymore. happens in safari , firefox, in chrome it's still working expected. put example on http://img-notloading-safari.meteor.com

i don't know if has it, noticed, 'waiton' function of iron:router called twice when overview loaded in beginning, once when come form detail view , pictures not loading.

any hint highly appreciated.

i looked @ network requests in firefox , reason tries load http://img-notloading-safari.meteor.com/posts/discover.png, not there. maybe happens because template rendered before url changes.

i suggest changing url of image in <img src= discover.png, relative url, /discover.png, is, absolute path.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -