fixed url resolving in public api