make template urls absolute