smarter template that assumes absolute urls