baseurl always has a trailing slash; update template files