fixing relative link in template