Added a method for printing URLs in template