I have a Web Application in which I display some media. I originally had a piece of HTML like
<video id="video" class="video-player">
<source src="media/foo.mp4"/>
</video>
displayed on '/shows/' page.
This absolute URL was translated to '/media/foo.mp4' in Chrome, but Firefox translated it to '/shows/media/foo.mp4'. I know that I can simply solve this problem by putting a / in the beginning of relative URL, but the question is:
What cares should I have when using relative URLs? Are there any other issues concerning cross-browser compatibility?