fixes urls in the template