Fix for url function in template