Added  template tag which is smart about http(s)