Fix determining of endpoint for fetch: methods