accounting for no leading slash in forming the url