change baseurl and delete baseurl in template