Minor change to templates' handling of URLs.