minor fix to get url name of a public endpoint