This is my code inside smarty tpl file(or for any simple HTML):
<img src="../images/blah.jpg" />
Now in Firefox the path is resolving to: localhost/app/index.php/images/blah.jpg(and of course image is not loading).And in IE7 its resolving correctly(localhost/app/images/blah.jpg).
Can any one please help me how to resolve this?
If you’re not using it, add it and you’ll have to update once you’re live. The reason it happens is because when you’re working locally, (are you using MAMP?) the localhost thinks that your root folder is where the site is hosted. The problem occurs when you have ROOT/root_of_this_site/images/. Base href is supported by all major browsers, and it’s not too hard to change it once you’re live 🙂
Thanks 🙂