When browser displays:
and encounters a relative URL such as:
It translates the relative URL to (respectively):
You should use absolute URLs for assets. Make this a habit:
Alternately you can use the HTML
base tag in your pages which tells browsers how to treat relative URLs. Personally I do not recommend it.