fix resources path to be relative to discoveryUrl