change path to url for methods called from email templates