Use URL template function to generate URLs.