When creating a view, I rewrote the output in "Rewrite Results". There I have an HTML with a link to an icon in the theme folder.
<ul class="stats vertical"> <li><a href="#"><img src="sites/all/themes/my_theme/images/my_icon.png">[field_output]</a></li> <li><a href="#"><img src="sites/all/themes/my_theme/images/my_icon.png_orange.png">[field_text_output]</a></li> </ul>
As you can see that I am hard-coding the path to my icons. This works if this View Page is accessed from home page. But when this View page is accessed from some 2nd or 3rd level page, the icons are not shown.
Is there any way I can get a relative path to my theme within Views?