Added toUrl(path, values) for resolving urls